use of org.hibernate.reactive.loader.entity.impl.ReactiveEntityLoader in project hibernate-reactive by hibernate.
the class ReactiveAbstractEntityPersister method createReactiveUniqueKeyLoader.
default UniqueEntityLoader createReactiveUniqueKeyLoader(Type uniqueKeyType, String[] columns, LoadQueryInfluencers loadQueryInfluencers) {
if (uniqueKeyType.isEntityType()) {
String className = ((EntityType) uniqueKeyType).getAssociatedEntityName();
uniqueKeyType = getFactory().getMetamodel().entityPersister(className).getIdentifierType();
}
return new ReactiveEntityLoader(this, columns, uniqueKeyType, 1, LockMode.NONE, getFactory(), loadQueryInfluencers);
}
Aggregations