Skip to content

Commit

Permalink
OGM-837 Add javadoc to ParserPropertyHelper#isEmbeddedProperty
Browse files Browse the repository at this point in the history
  • Loading branch information
DavideD committed Jun 1, 2015
1 parent 3f4f530 commit 22d1a27
Showing 1 changed file with 7 additions and 0 deletions.
Expand Up @@ -125,6 +125,13 @@ protected OgmEntityPersister getPersister(String entityType) {
return (OgmEntityPersister) sessionFactory.getEntityPersister( targetedType.getName() );
}

/**
* Checks if the path leads to an embedded property or association.
*
* @param targetTypeName the entity with the property
* @param namesWithoutAlias the path to the the property with all the aliases resolved
* @return {@code true} if the property is an embedded, {@code false} otherwise.
*/
public boolean isEmbeddedProperty(String targetTypeName, List<String> namesWithoutAlias) {
OgmEntityPersister persister = getPersister( targetTypeName );
Type propertyType = persister.getPropertyType( namesWithoutAlias.get( 0 ) );
Expand Down

0 comments on commit 22d1a27

Please sign in to comment.