use of org.hibernate.persister.entity.UniqueKeyLoadable in project hibernate-orm by hibernate.
the class BatchFetchStrategyHelperTest method determineFetchMode.
private org.hibernate.FetchMode determineFetchMode(Class<?> entityClass, String path) {
OuterJoinLoadable entityPersister = (OuterJoinLoadable) sessionFactory().getEntityPersister(entityClass.getName());
int index = ((UniqueKeyLoadable) entityPersister).getPropertyIndex(path);
return entityPersister.getFetchMode(index);
}
use of org.hibernate.persister.entity.UniqueKeyLoadable in project hibernate-orm by hibernate.
the class BatchFetchStrategyHelperTest method determineAssociationType.
private AssociationType determineAssociationType(Class<?> entityClass, String path) {
OuterJoinLoadable entityPersister = (OuterJoinLoadable) sessionFactory().getEntityPersister(entityClass.getName());
int index = ((UniqueKeyLoadable) entityPersister).getPropertyIndex(path);
return (AssociationType) entityPersister.getSubclassPropertyType(index);
}
use of org.hibernate.persister.entity.UniqueKeyLoadable in project hibernate-orm by hibernate.
the class FetchStrategyHelperTest method determineFetchMode.
private org.hibernate.FetchMode determineFetchMode(Class<?> entityClass, String path) {
OuterJoinLoadable entityPersister = (OuterJoinLoadable) sessionFactory().getEntityPersister(entityClass.getName());
int index = ((UniqueKeyLoadable) entityPersister).getPropertyIndex(path);
return entityPersister.getFetchMode(index);
}
use of org.hibernate.persister.entity.UniqueKeyLoadable in project hibernate-orm by hibernate.
the class FetchStrategyHelperTest method determineAssociationType.
private AssociationType determineAssociationType(Class<?> entityClass, String path) {
OuterJoinLoadable entityPersister = (OuterJoinLoadable) sessionFactory().getEntityPersister(entityClass.getName());
int index = ((UniqueKeyLoadable) entityPersister).getPropertyIndex(path);
return (AssociationType) entityPersister.getSubclassPropertyType(index);
}
use of org.hibernate.persister.entity.UniqueKeyLoadable in project hibernate-orm by hibernate.
the class NoProxyFetchStrategyHelperTest method determineFetchMode.
private org.hibernate.FetchMode determineFetchMode(Class<?> entityClass, String path) {
OuterJoinLoadable entityPersister = (OuterJoinLoadable) sessionFactory().getEntityPersister(entityClass.getName());
int index = ((UniqueKeyLoadable) entityPersister).getPropertyIndex(path);
return entityPersister.getFetchMode(index);
}
Aggregations