public boolean isEmbeddedProperty ( String targetTypeName , List < String > namesWithoutAlias ) { OgmEntityPersister persister = getPersister ( targetTypeName ) ; Type propertyType = persister . getPropertyType ( namesWithoutAlias . get ( 0 ) ) ; if ( propertyType . isComponentType ( ) ) { // Embedded return true ; } else if ( propertyType . isAssociationType ( ) ) { Joinable associatedJoinable = ( ( AssociationType ) propertyType ) . getAssociatedJoinable ( persister . getFactory ( ) ) ; if ( associatedJoinable . isCollection ( ) ) { OgmCollectionPersister collectionPersister = ( OgmCollectionPersister ) associatedJoinable ; return collectionPersister . getType ( ) . isComponentType ( ) ; } } return false ; }
Checks if the path leads to an embedded property or association .