Package org.hibernate.query.sqm.internal
Class SqmMappingModelHelper
- java.lang.Object
-
- org.hibernate.query.sqm.internal.SqmMappingModelHelper
-
public class SqmMappingModelHelper extends Object
Helper for dealing with Hibernate's "mapping model" while processing an SQM which is defined in terms of the JPA/SQM metamodel
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static EntityPersister
resolveEntityPersister(EntityDomainType<?> entityType, SessionFactoryImplementor sessionFactory)
Resolve a JPA EntityType descriptor to it's corresponding EntityPersister in the Hibernate mapping type systemstatic EntityMappingType
resolveExplicitTreatTarget(SqmPath<?> sqmPath, SqmToSqlAstConverter converter)
static MappingModelExpressible<?>
resolveMappingModelExpressible(SqmTypedNode<?> sqmNode, MappingMetamodel domainModel, Function<NavigablePath,TableGroup> tableGroupLocator)
static <J> SqmPathSource<J>
resolveSqmKeyPathSource(DomainType<J> valueDomainType, Bindable.BindableType jpaBindableType, boolean isGeneric)
static <J> SqmPathSource<J>
resolveSqmPathSource(String name, DomainType<J> valueDomainType, Bindable.BindableType jpaBindableType, boolean isGeneric)
static <J> SqmPathSource<J>
resolveSqmPathSource(String name, SqmPathSource<J> pathModel, DomainType<J> valueDomainType, JavaType<?> relationalJavaType, Bindable.BindableType jpaBindableType, boolean isGeneric)
-
-
-
Method Detail
-
resolveEntityPersister
public static EntityPersister resolveEntityPersister(EntityDomainType<?> entityType, SessionFactoryImplementor sessionFactory)
Resolve a JPA EntityType descriptor to it's corresponding EntityPersister in the Hibernate mapping type system
-
resolveSqmKeyPathSource
public static <J> SqmPathSource<J> resolveSqmKeyPathSource(DomainType<J> valueDomainType, Bindable.BindableType jpaBindableType, boolean isGeneric)
-
resolveSqmPathSource
public static <J> SqmPathSource<J> resolveSqmPathSource(String name, DomainType<J> valueDomainType, Bindable.BindableType jpaBindableType, boolean isGeneric)
-
resolveSqmPathSource
public static <J> SqmPathSource<J> resolveSqmPathSource(String name, SqmPathSource<J> pathModel, DomainType<J> valueDomainType, JavaType<?> relationalJavaType, Bindable.BindableType jpaBindableType, boolean isGeneric)
-
resolveMappingModelExpressible
public static MappingModelExpressible<?> resolveMappingModelExpressible(SqmTypedNode<?> sqmNode, MappingMetamodel domainModel, Function<NavigablePath,TableGroup> tableGroupLocator)
-
resolveExplicitTreatTarget
public static EntityMappingType resolveExplicitTreatTarget(SqmPath<?> sqmPath, SqmToSqlAstConverter converter)
-
-