use of org.hibernate.persister.entity.PropertyMapping in project hibernate-orm by hibernate.
the class QueryTranslatorImpl method getPropertyMapping.
PropertyMapping getPropertyMapping(String name) throws QueryException {
PropertyMapping decorator = getDecoratedPropertyMapping(name);
if (decorator != null) {
return decorator;
}
String type = getType(name);
if (type == null) {
String role = getRole(name);
if (role == null) {
throw new QueryException("alias not found: " + name);
}
// .getElementPropertyMapping();
return getCollectionPersister(role);
} else {
Queryable persister = getEntityPersister(type);
if (persister == null) {
throw new QueryException("persistent class not found: " + type);
}
return persister;
}
}
Aggregations