Fix PluralAttributeMapping#findSubpart for elementDescriptor instanceof EmbeddedCollectionPart
This commit is contained in:
parent
b26b397d59
commit
b9612247f5
|
@ -849,6 +849,9 @@ public class PluralAttributeMappingImpl extends AbstractAttributeMapping impleme
|
|||
if ( elementDescriptor instanceof EntityCollectionPart ) {
|
||||
return ( (EntityCollectionPart) elementDescriptor ).findSubPart( name );
|
||||
}
|
||||
else if ( elementDescriptor instanceof EmbeddedCollectionPart ) {
|
||||
return ( (EmbeddedCollectionPart) elementDescriptor ).findSubPart( name, treatTargetType );
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue