Skip to content

Commit b3d0173

Browse files
mbelladebeikov
authored andcommitted
HHH-18259 Fix check for generated properties for root table only
1 parent 24dd943 commit b3d0173

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
@@ -4744,7 +4744,7 @@ protected List<? extends ModelPart> initInsertGeneratedProperties(List<Attribute
47444744
for ( AttributeMapping generatedAttribute : generatedAttributes ) {
47454745
// todo (7.0) : support non selectable mappings? Component, ToOneAttributeMapping, ...
47464746
if ( generatedAttribute.asBasicValuedModelPart() != null
4747-
&& generatedAttribute.getContainingTableExpression().equals( getSubclassTableName( 0 ) ) ) {
4747+
&& generatedAttribute.getContainingTableExpression().equals( getRootTableName() ) ) {
47484748
generatedBasicAttributes.add( generatedAttribute );
47494749
}
47504750
}

0 commit comments

Comments
 (0)