Fix PluralAttributeMapping#findSubpart for elementDescriptor instanceof EmbeddedCollectionPart

This commit is contained in:
Andrea Boriero 2020-07-24 16:08:39 +01:00
parent b26b397d59
commit b9612247f5
1 changed files with 3 additions and 0 deletions

View File

@ -849,6 +849,9 @@ public class PluralAttributeMappingImpl extends AbstractAttributeMapping impleme
if ( elementDescriptor instanceof EntityCollectionPart ) { if ( elementDescriptor instanceof EntityCollectionPart ) {
return ( (EntityCollectionPart) elementDescriptor ).findSubPart( name ); return ( (EntityCollectionPart) elementDescriptor ).findSubPart( name );
} }
else if ( elementDescriptor instanceof EmbeddedCollectionPart ) {
return ( (EmbeddedCollectionPart) elementDescriptor ).findSubPart( name, treatTargetType );
}
return null; return null;
} }