use of org.hibernate.persister.entity.OuterJoinLoadable 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.OuterJoinLoadable 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.OuterJoinLoadable 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.OuterJoinLoadable 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.OuterJoinLoadable in project hibernate-orm by hibernate.
the class BasicCollectionLoadQueryDetails method applyRootReturnSelectFragments.
@Override
protected void applyRootReturnSelectFragments(SelectStatementBuilder selectStatementBuilder) {
selectStatementBuilder.appendSelectClauseFragment(getQueryableCollection().selectFragment(getCollectionReferenceAliases().getCollectionTableAlias(), getCollectionReferenceAliases().getCollectionColumnAliases().getSuffix()));
if (getQueryableCollection().isManyToMany()) {
final OuterJoinLoadable elementPersister = (OuterJoinLoadable) getQueryableCollection().getElementPersister();
selectStatementBuilder.appendSelectClauseFragment(elementPersister.selectFragment(getCollectionReferenceAliases().getElementTableAlias(), getCollectionReferenceAliases().getEntityElementAliases().getColumnAliases().getSuffix()));
}
super.applyRootReturnSelectFragments(selectStatementBuilder);
}
Aggregations