private EntityPersister resolveEntityJoinReferencedPersister(AST path) { if ( path.getType() == IDENT ) { final IdentNode pathIdentNode = (IdentNode) path; String name = path.getText(); if ( name == null ) { name = pathIdentNode.getOriginalText(); } return sessionFactoryHelper.findEntityPersisterByName( name ); } else if ( path.getType() == DOT ) { final String pathText = ASTUtil.getPathText( path ); return sessionFactoryHelper.findEntityPersisterByName( pathText ); } return null; }
/** * Locate the persister by class or entity name, requiring that such a persister * exist. * * @param name The class or entity name * * @return The defined persister for this entity * * @throws SemanticException Indicates the persister could not be found */ public EntityPersister requireClassPersister(String name) throws SemanticException { EntityPersister cp; try { cp = findEntityPersisterByName( name ); if ( cp == null ) { throw new QuerySyntaxException( name + " is not mapped" ); } } catch ( MappingException e ) { throw new DetailedSemanticException( e.getMessage(), e ); } return cp; }
/** * Locate the persister by class or entity name, requiring that such a persister * exist. * * @param name The class or entity name * @return The defined persister for this entity * @throws SemanticException Indicates the persister could not be found */ public EntityPersister requireClassPersister(String name) throws SemanticException { EntityPersister cp; try { cp = findEntityPersisterByName( name ); if ( cp == null ) { throw new QuerySyntaxException( name + " is not mapped" ); } } catch ( MappingException e ) { throw new DetailedSemanticException( e.getMessage(), e ); } return cp; }
/** * Locate the persister by class or entity name, requiring that such a persister * exist. * * @param name The class or entity name * @return The defined persister for this entity * @throws SemanticException Indicates the persister could not be found */ public EntityPersister requireClassPersister(String name) throws SemanticException { EntityPersister cp; try { cp = findEntityPersisterByName( name ); if ( cp == null ) { throw new QuerySyntaxException( name + " is not mapped" ); } } catch ( MappingException e ) { throw new DetailedSemanticException( e.getMessage(), e ); } return cp; }