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