HHH-18259 Fix check for generated properties for root table only
This commit is contained in:
parent
9452f9523d
commit
1c1572b88e
|
@ -4697,7 +4697,7 @@ public abstract class AbstractEntityPersister
|
||||||
for ( AttributeMapping generatedAttribute : generatedAttributes ) {
|
for ( AttributeMapping generatedAttribute : generatedAttributes ) {
|
||||||
// todo (7.0) : support non selectable mappings? Component, ToOneAttributeMapping, ...
|
// todo (7.0) : support non selectable mappings? Component, ToOneAttributeMapping, ...
|
||||||
if ( generatedAttribute.asBasicValuedModelPart() != null
|
if ( generatedAttribute.asBasicValuedModelPart() != null
|
||||||
&& generatedAttribute.getContainingTableExpression().equals( getSubclassTableName( 0 ) ) ) {
|
&& generatedAttribute.getContainingTableExpression().equals( getRootTableName() ) ) {
|
||||||
generatedBasicAttributes.add( generatedAttribute );
|
generatedBasicAttributes.add( generatedAttribute );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue