use of org.hibernate.query.results.dynamic.DynamicResultBuilderEntityCalculated in project hibernate-orm by hibernate.
the class Builders method entityCalculated.
/**
* Creates a EntityResultBuilder that does not allow any further configuring of the mapping.
*
* @see #entityCalculated(String, String, SessionFactoryImplementor)
* @see NativeQuery#addEntity(String, Class, LockMode)
* @see NativeQuery#addEntity(String, String, LockMode)
*/
public static DynamicResultBuilderEntityCalculated entityCalculated(String tableAlias, String entityName, LockMode explicitLockMode, SessionFactoryImplementor sessionFactory) {
final RuntimeMetamodels runtimeMetamodels = sessionFactory.getRuntimeMetamodels();
final EntityMappingType entityMapping = runtimeMetamodels.getEntityMappingType(entityName);
return new DynamicResultBuilderEntityCalculated(entityMapping, tableAlias, explicitLockMode, sessionFactory);
}
Aggregations