Skip to content

Commit 1c1572b

Browse files
committed
HHH-18259 Fix check for generated properties for root table only
1 parent 9452f95 commit 1c1572b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hibernate-core/src/main/java/org/hibernate/persister/entity/AbstractEntityPersister.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4697,7 +4697,7 @@ protected List<? extends ModelPart> initInsertGeneratedProperties(List<Attribute
46974697
for ( AttributeMapping generatedAttribute : generatedAttributes ) {
46984698
// todo (7.0) : support non selectable mappings? Component, ToOneAttributeMapping, ...
46994699
if ( generatedAttribute.asBasicValuedModelPart() != null
4700-
&& generatedAttribute.getContainingTableExpression().equals( getSubclassTableName( 0 ) ) ) {
4700+
&& generatedAttribute.getContainingTableExpression().equals( getRootTableName() ) ) {
47014701
generatedBasicAttributes.add( generatedAttribute );
47024702
}
47034703
}

0 commit comments

Comments
 (0)