Top Description Fields Constructors Methods
org.hibernate.metamodel.internal

public Class MetamodelImpl

extends Object
implements MetamodelImplementor, Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable, org.hibernate.metamodel.spi.MetamodelImplementor, org.hibernate.Metamodel, javax.persistence.metamodel.Metamodel
Imports
java.io.Serializable, java.util.ArrayList, .Arrays, .Collections, .HashSet, .List, .Locale, .Map, .Set, java.util.concurrent.ConcurrentHashMap, .ConcurrentMap, .CopyOnWriteArraySet, javax.persistence.EntityGraph, .NamedAttributeNode, .NamedEntityGraph, .NamedSubgraph, javax.persistence.metamodel.Attribute, .EmbeddableType, .EntityType, .ManagedType, .MappedSuperclassType, org.hibernate.EntityNameResolver, .HibernateException, .MappingException, .UnknownEntityTypeException, org.hibernate.boot.registry.classloading.spi.ClassLoaderService, .ClassLoadingException, org.hibernate.boot.spi.MetadataImplementor, org.hibernate.cache.cfg.internal.DomainDataRegionConfigImpl, org.hibernate.cache.cfg.spi.DomainDataRegionConfig, org.hibernate.cache.spi.access.AccessType, .CollectionDataAccess, .EntityDataAccess, .NaturalIdDataAccess, org.hibernate.cfg.annotations.NamedEntityGraphDefinition, org.hibernate.engine.spi.SessionFactoryImplementor, org.hibernate.graph.internal.RootGraphImpl, org.hibernate.graph.spi.AttributeNodeImplementor, .GraphImplementor, .RootGraphImplementor, .SubGraphImplementor, org.hibernate.internal.EntityManagerMessageLogger, .HEMLogging, org.hibernate.internal.util.StringHelper, org.hibernate.internal.util.collections.ArrayHelper, .CollectionHelper, org.hibernate.mapping.Collection, .MappedSuperclass, .PersistentClass, .RootClass, org.hibernate.metamodel.model.domain.NavigableRole, org.hibernate.metamodel.model.domain.internal.EntityTypeImpl, .MappedSuperclassTypeImpl, org.hibernate.metamodel.model.domain.spi.EmbeddedTypeDescriptor, .EntityTypeDescriptor, .IdentifiableTypeDescriptor, .ManagedTypeDescriptor, .MappedSuperclassTypeDescriptor, org.hibernate.metamodel.spi.MetamodelImplementor, org.hibernate.persister.collection.CollectionPersister, org.hibernate.persister.entity.EntityPersister, .Queryable, org.hibernate.persister.spi.PersisterCreationContext, .PersisterFactory, org.hibernate.tuple.entity.EntityTuplizer, org.hibernate.type.AssociationType, .Type, org.hibernate.type.spi.TypeConfiguration

Hibernate implementation of the JPA javax.persistence.metamodel.Metamodel contract.
Authors
Steve Ebersole, Emmanuel Bernard

Field Summary

Modifier and TypeField and Description
private final Map<String, CollectionPersister>
private final Map<String, Set<String>>
private static final String[]
private static final Object
private final transient Map<String, RootGraphImplementor<J>>
private final ConcurrentMap<EntityNameResolver, Object>
private final Map<String, EntityPersister>
private final Map<Class<T>, String>
private final Map<String, String[]>
private static final String
private final Map<Class<?>, EmbeddedTypeDescriptor<?>>
jpaEmbeddableTypeMap

That's not strictly correct in the JPA standard since for a given Java type we could have multiple instances of an embeddable type.

private final Set<EmbeddedTypeDescriptor<?>>
jpaEmbeddableTypes

There can be multiple instances of an Embeddable type, each one being relative to its parent entity.

private final Map<Class<?>, EntityTypeDescriptor<?>>
private final Map<String, EntityTypeDescriptor<?>>
private final Map<Class<?>, MappedSuperclassType<?>>
private final Map<String, String>
private final Map<String, String>
private static final EntityManagerMessageLogger
private final SessionFactoryImplementor
sessionFactory

Deprecated as a consequence of SessionFactoryImplementor being deprecated.
private final TypeConfiguration

Constructor Summary

AccessConstructor and Description
public
MetamodelImpl(SessionFactoryImplementor sessionFactory, TypeConfiguration typeConfiguration)

Deprecated as a consequence of SessionFactoryImplementor being deprecated.

Method Summary

Modifier and TypeMethod and Description
public <T> void
public <T> void
private void
applyNamedAttributeNodes(NamedAttributeNode[] namedAttributeNodes, NamedEntityGraph namedEntityGraph, GraphImplementor<J> graphNode)

private void
private void
applyNamedSubgraphs(NamedEntityGraph namedEntityGraph, String subgraphName, SubGraphImplementor<J> subgraph)

private static EntityTypeImpl<?>
private static MappedSuperclassTypeImpl<?>
public void
public CollectionPersister
collectionPersister(String
The role of the collection for which to retrieve the persister.
role
)

Implements org.hibernate.metamodel.spi.MetamodelImplementor.collectionPersister.

Get the persister object for a collection role.
public Map<String, CollectionPersister>
collectionPersisters()

Implements org.hibernate.metamodel.spi.MetamodelImplementor.collectionPersisters.

Get all collection persisters as a Map, which collection role as the key and the persister is the value.
private String[]
public <X> EmbeddedTypeDescriptor<X>
embeddable(Class<X>
the type of the represented embeddable class
cls
)

Implements org.hibernate.metamodel.spi.MetamodelImplementor.embeddable.

Return the metamodel embeddable type representing the embeddable class.
public <X> EntityTypeDescriptor<X>
entity(Class<X>
the type of the represented entity
cls
)

Implements org.hibernate.metamodel.spi.MetamodelImplementor.entity.

Return the metamodel entity type representing the entity.
public <X> EntityTypeDescriptor<X>
entity(String
The entity-name
entityName
)

Implements org.hibernate.metamodel.spi.MetamodelImplementor.entity.

Access to an entity supporting Hibernate's entity-name feature
public EntityPersister
entityPersister(Class<T>
The entity class
entityClass
)

Implements org.hibernate.metamodel.spi.MetamodelImplementor.entityPersister.

Locate the persister for an entity by the entity class.
public EntityPersister
entityPersister(String
The name of the entity for which to retrieve the persister.
entityName
)

Implements org.hibernate.metamodel.spi.MetamodelImplementor.entityPersister.

Locate the persister for an entity by the entity-name
public Map<String, EntityPersister>
entityPersisters()

Implements org.hibernate.metamodel.spi.MetamodelImplementor.entityPersisters.

Get all entity persisters as a Map, which entity name its the key and the persister is the value.
public <T> RootGraphImplementor<T>
public <T> List<RootGraphImplementor<? super T>>
public String[]
getAllCollectionRoles()

Implements org.hibernate.metamodel.spi.MetamodelImplementor.getAllCollectionRoles.

Get the names of all collections known to this Metamodel
public String[]
getAllEntityNames()

Implements org.hibernate.metamodel.spi.MetamodelImplementor.getAllEntityNames.

Get the names of all entities known to this Metamodel
public Set<String>
getCollectionRolesByEntityParticipant(String
The entity name for which to get the collection roles.
entityName
)

Implements org.hibernate.metamodel.spi.MetamodelImplementor.getCollectionRolesByEntityParticipant.

Retrieves a set of all the collection roles in which the given entity is a participant, as either an index or an element.
public Set<EmbeddableType<?>>
getEmbeddables()

Implements javax.persistence.metamodel.Metamodel.getEmbeddables.

Return the metamodel embeddable types.
public Set<EntityType<?>>
getEntities()

Implements javax.persistence.metamodel.Metamodel.getEntities.

Return the metamodel entity types.
public Collection<EntityNameResolver>
public String[]
getImplementors(String
The name of the entity class
className
)

Implements org.hibernate.Metamodel.getImplementors.

Given the name of an entity class, determine all the class and interface names by which it can be referenced in an HQL query.
public String
public Set<ManagedType<?>>
getManagedTypes()

Implements javax.persistence.metamodel.Metamodel.getManagedTypes.

Return the metamodel managed types.
public SessionFactoryImplementor
getSessionFactory()

Implements org.hibernate.metamodel.spi.MetamodelImplementor.getSessionFactory.

Deprecated as a consequence of SessionFactoryImplementor being deprecated.
Access to the SessionFactory that this Metamodel instance is bound to.
public TypeConfiguration
getTypeConfiguration()

Implements org.hibernate.metamodel.spi.MetamodelImplementor.getTypeConfiguration.

Access to the TypeConfiguration in effect for this SessionFactory/Metamodel
private static void
public void
initialize(MetadataImplementor
The mapping information
mappingMetadata
,
JpaMetaModelPopulationSetting
Should the JPA Metamodel be built as well?
jpaMetaModelPopulationSetting
)

Prepare the metamodel using the information from the collection of Hibernate PersistentClass models

public EntityPersister
locateEntityPersister(Class<T>
The concrete Class or proxy interface for the entity to locate the persister for.
byClass
)

Implements org.hibernate.metamodel.spi.MetamodelImplementor.locateEntityPersister.

Locate an EntityPersister by the entity class.
public EntityPersister
locateEntityPersister(String
The entity name
byName
)

Implements org.hibernate.metamodel.spi.MetamodelImplementor.locateEntityPersister.

Locate the entity persister by name.
private static EntityTypeDescriptor<?>
private static MappedSuperclassTypeDescriptor<?>
public <X> ManagedTypeDescriptor<X>
managedType(Class<X>
the type of the represented managed class
cls
)

Implements org.hibernate.metamodel.spi.MetamodelImplementor.managedType.

Return the metamodel managed type representing the entity, mapped superclass, or embeddable class.
private void
private static void
private static void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

collectionPersisterMapback to summary
private final Map<String, CollectionPersister> collectionPersisterMap
collectionRolesByEntityParticipantback to summary
private final Map<String, Set<String>> collectionRolesByEntityParticipant
EMPTY_IMPLEMENTORSback to summary
private static final String[] EMPTY_IMPLEMENTORS
ENTITY_NAME_RESOLVER_MAP_VALUEback to summary
private static final Object ENTITY_NAME_RESOLVER_MAP_VALUE
entityGraphMapback to summary
private final transient Map<String, RootGraphImplementor<J>> entityGraphMap
entityNameResolversback to summary
private final ConcurrentMap<EntityNameResolver, Object> entityNameResolvers
entityPersisterMapback to summary
private final Map<String, EntityPersister> entityPersisterMap
entityProxyInterfaceMapback to summary
private final Map<Class<T>, String> entityProxyInterfaceMap
implementorsCacheback to summary
private final Map<String, String[]> implementorsCache
INVALID_IMPORTback to summary
private static final String INVALID_IMPORT
jpaEmbeddableTypeMapback to summary
private final Map<Class<?>, EmbeddedTypeDescriptor<?>> jpaEmbeddableTypeMap

That's not strictly correct in the JPA standard since for a given Java type we could have multiple instances of an embeddable type. Some embeddable might override attributes, but we can only return a single EmbeddableTypeImpl for a given Java object class. A better approach would be if the parent class and attribute name would be included as well when trying to locate the embeddable type.

jpaEmbeddableTypesback to summary
private final Set<EmbeddedTypeDescriptor<?>> jpaEmbeddableTypes

There can be multiple instances of an Embeddable type, each one being relative to its parent entity.

jpaEntityTypeMapback to summary
private final Map<Class<?>, EntityTypeDescriptor<?>> jpaEntityTypeMap
jpaEntityTypesByEntityNameback to summary
private final Map<String, EntityTypeDescriptor<?>> jpaEntityTypesByEntityName
jpaMappedSuperclassTypeMapback to summary
private final Map<Class<?>, MappedSuperclassType<?>> jpaMappedSuperclassTypeMap
knownInvalidImportsback to summary
private final Map<String, String> knownInvalidImports
knownValidImportsback to summary
private final Map<String, String> knownValidImports
logback to summary
private static final EntityManagerMessageLogger log
sessionFactoryback to summary
private final SessionFactoryImplementor sessionFactory

Deprecated

as a consequence of SessionFactoryImplementor being deprecated. See corresponding docs for further information.

typeConfigurationback to summary
private final TypeConfiguration typeConfiguration

Constructor Detail

MetamodelImplback to summary
public MetamodelImpl(SessionFactoryImplementor sessionFactory, TypeConfiguration typeConfiguration)

Deprecated

as a consequence of SessionFactoryImplementor being deprecated. See corresponding docs for further information.

Method Detail

addNamedEntityGraphback to summary
public <T> void addNamedEntityGraph(String graphName, RootGraphImplementor<T> entityGraph)

Implements org.hibernate.metamodel.spi.MetamodelImplementor.addNamedEntityGraph.

Annotations
@Override
addNamedEntityGraphback to summary
public <T> void addNamedEntityGraph(String graphName, EntityGraph<T> entityGraph)

Implements org.hibernate.metamodel.spi.MetamodelImplementor.addNamedEntityGraph.

Annotations
@Override
applyNamedAttributeNodesback to summary
private void applyNamedAttributeNodes(NamedAttributeNode[] namedAttributeNodes, NamedEntityGraph namedEntityGraph, GraphImplementor<J> graphNode)
applyNamedEntityGraphsback to summary
private void applyNamedEntityGraphs(Collection<NamedEntityGraphDefinition> namedEntityGraphs)
Annotations
@SuppressWarnings:unchecked
applyNamedSubgraphsback to summary
private void applyNamedSubgraphs(NamedEntityGraph namedEntityGraph, String subgraphName, SubGraphImplementor<J> subgraph)
buildEntityTypeback to summary
private static EntityTypeImpl<?> buildEntityType(PersistentClass persistentClass, MetadataContext context)
Annotations
@SuppressWarnings:unchecked
buildMappedSuperclassTypeback to summary
private static MappedSuperclassTypeImpl<?> buildMappedSuperclassType(MappedSuperclass mappedSuperclass, MetadataContext context)
Annotations
@SuppressWarnings:unchecked
closeback to summary
public void close()

Implements org.hibernate.metamodel.spi.MetamodelImplementor.close.

Annotations
@Override
collectionPersisterback to summary
public CollectionPersister collectionPersister(String role)

Implements org.hibernate.metamodel.spi.MetamodelImplementor.collectionPersister.

Doc from org.hibernate.metamodel.spi.MetamodelImplementor.collectionPersister.

Get the persister object for a collection role.

Parameters
role:String

The role of the collection for which to retrieve the persister.

Returns:CollectionPersister

The persister

Annotations
@Override
collectionPersistersback to summary
public Map<String, CollectionPersister> collectionPersisters()

Implements org.hibernate.metamodel.spi.MetamodelImplementor.collectionPersisters.

Doc from org.hibernate.metamodel.spi.MetamodelImplementor.collectionPersisters.

Get all collection persisters as a Map, which collection role as the key and the persister is the value.

Returns:Map<String, CollectionPersister>

The Map contains all collection persisters.

Annotations
@Override
doGetImplementorsback to summary
private String[] doGetImplementors(Class<?> clazz) throws MappingException
embeddableback to summary
public <X> EmbeddedTypeDescriptor<X> embeddable(Class<X> cls)

Implements org.hibernate.metamodel.spi.MetamodelImplementor.embeddable.

Doc from javax.persistence.metamodel.Metamodel.embeddable.

Return the metamodel embeddable type representing the embeddable class.

Parameters
cls:Class<X>

the type of the represented embeddable class

Returns:EmbeddedTypeDescriptor<X>

the metamodel embeddable type

Annotations
@Override
@SuppressWarnings:unchecked
entityback to summary
public <X> EntityTypeDescriptor<X> entity(Class<X> cls)

Implements org.hibernate.metamodel.spi.MetamodelImplementor.entity.

Doc from javax.persistence.metamodel.Metamodel.entity.

Return the metamodel entity type representing the entity.

Parameters
cls:Class<X>

the type of the represented entity

Returns:EntityTypeDescriptor<X>

the metamodel entity type

Annotations
@Override
@SuppressWarnings:unchecked
entityback to summary
public <X> EntityTypeDescriptor<X> entity(String entityName)

Implements org.hibernate.metamodel.spi.MetamodelImplementor.entity.

Doc from org.hibernate.Metamodel.entity.

Access to an entity supporting Hibernate's entity-name feature

Parameters
entityName:String

The entity-name

Returns:EntityTypeDescriptor<X>

The entity descriptor

Annotations
@Override
@SuppressWarnings:unchecked
entityPersisterback to summary
public EntityPersister entityPersister(Class<T> entityClass)

Implements org.hibernate.metamodel.spi.MetamodelImplementor.entityPersister.

Doc from org.hibernate.metamodel.spi.MetamodelImplementor.entityPersister.

Locate the persister for an entity by the entity class.

Parameters
entityClass:Class<T>

The entity class

Returns:EntityPersister

The entity persister

Annotations
@Override
entityPersisterback to summary
public EntityPersister entityPersister(String entityName) throws MappingException

Implements org.hibernate.metamodel.spi.MetamodelImplementor.entityPersister.

Doc from org.hibernate.metamodel.spi.MetamodelImplementor.entityPersister.

Locate the persister for an entity by the entity-name

Parameters
entityName:String

The name of the entity for which to retrieve the persister.

Returns:EntityPersister

The persister

Annotations
@Override
Exceptions
MappingException:
Indicates persister could not be found with that name.
entityPersistersback to summary
public Map<String, EntityPersister> entityPersisters()

Implements org.hibernate.metamodel.spi.MetamodelImplementor.entityPersisters.

Doc from org.hibernate.metamodel.spi.MetamodelImplementor.entityPersisters.

Get all entity persisters as a Map, which entity name its the key and the persister is the value.

Returns:Map<String, EntityPersister>

The Map contains all entity persisters.

Annotations
@Override
findEntityGraphByNameback to summary
public <T> RootGraphImplementor<T> findEntityGraphByName(String name)

Implements org.hibernate.metamodel.spi.MetamodelImplementor.findEntityGraphByName.

Annotations
@Override
@SuppressWarnings:unchecked
findEntityGraphsByJavaTypeback to summary
public <T> List<RootGraphImplementor<? super T>> findEntityGraphsByJavaType(Class<T> entityClass)

Implements org.hibernate.metamodel.spi.MetamodelImplementor.findEntityGraphsByJavaType.

Annotations
@Override
@SuppressWarnings:unchecked
getAllCollectionRolesback to summary
public String[] getAllCollectionRoles()

Implements org.hibernate.metamodel.spi.MetamodelImplementor.getAllCollectionRoles.

Doc from org.hibernate.metamodel.spi.MetamodelImplementor.getAllCollectionRoles.

Get the names of all collections known to this Metamodel

Returns:String[]

All of the entity names

Annotations
@Override
getAllEntityNamesback to summary
public String[] getAllEntityNames()

Implements org.hibernate.metamodel.spi.MetamodelImplementor.getAllEntityNames.

Doc from org.hibernate.metamodel.spi.MetamodelImplementor.getAllEntityNames.

Get the names of all entities known to this Metamodel

Returns:String[]

All of the entity names

Annotations
@Override
getCollectionRolesByEntityParticipantback to summary
public Set<String> getCollectionRolesByEntityParticipant(String entityName)

Implements org.hibernate.metamodel.spi.MetamodelImplementor.getCollectionRolesByEntityParticipant.

Doc from org.hibernate.metamodel.spi.MetamodelImplementor.getCollectionRolesByEntityParticipant.

Retrieves a set of all the collection roles in which the given entity is a participant, as either an index or an element.

Parameters
entityName:String

The entity name for which to get the collection roles.

Returns:Set<String>

set of all the collection roles in which the given entityName participates.

Annotations
@Override
getEmbeddablesback to summary
public Set<EmbeddableType<?>> getEmbeddables()

Implements javax.persistence.metamodel.Metamodel.getEmbeddables.

Doc from javax.persistence.metamodel.Metamodel.getEmbeddables.

Return the metamodel embeddable types. Returns empty set if there are no embeddable types.

Returns:Set<EmbeddableType<?>>

the metamodel embeddable types

Annotations
@Override
getEntitiesback to summary
public Set<EntityType<?>> getEntities()

Implements javax.persistence.metamodel.Metamodel.getEntities.

Doc from javax.persistence.metamodel.Metamodel.getEntities.

Return the metamodel entity types.

Returns:Set<EntityType<?>>

the metamodel entity types

Annotations
@Override
getEntityNameResolversback to summary
public Collection<EntityNameResolver> getEntityNameResolvers()

Implements org.hibernate.metamodel.spi.MetamodelImplementor.getEntityNameResolvers.

Annotations
@Override
getImplementorsback to summary
public String[] getImplementors(String className) throws MappingException

Implements org.hibernate.Metamodel.getImplementors.

Doc from org.hibernate.Metamodel.getImplementors.

Given the name of an entity class, determine all the class and interface names by which it can be referenced in an HQL query.

Parameters
className:String

The name of the entity class

Returns:String[]

the names of all persistent (mapped) classes that extend or implement the given class or interface, accounting for implicit/explicit polymorphism settings and excluding mapped subclasses/joined-subclasses of other classes in the result.

Annotations
@Override
getImportedClassNameback to summary
public String getImportedClassName(final String className)

Implements org.hibernate.Metamodel.getImportedClassName.

Annotations
@Override
getManagedTypesback to summary
public Set<ManagedType<?>> getManagedTypes()

Implements javax.persistence.metamodel.Metamodel.getManagedTypes.

Doc from javax.persistence.metamodel.Metamodel.getManagedTypes.

Return the metamodel managed types.

Returns:Set<ManagedType<?>>

the metamodel managed types

Annotations
@Override
getSessionFactoryback to summary
public SessionFactoryImplementor getSessionFactory()

Implements org.hibernate.metamodel.spi.MetamodelImplementor.getSessionFactory.

Doc from org.hibernate.Metamodel.getSessionFactory.

Deprecated

as a consequence of SessionFactoryImplementor being deprecated. See corresponding docs for further information.

Access to the SessionFactory that this Metamodel instance is bound to.

Returns:SessionFactoryImplementor

The SessionFactory

Annotations
@Override
getTypeConfigurationback to summary
public TypeConfiguration getTypeConfiguration()

Implements org.hibernate.metamodel.spi.MetamodelImplementor.getTypeConfiguration.

Doc from org.hibernate.metamodel.spi.MetamodelImplementor.getTypeConfiguration.

Access to the TypeConfiguration in effect for this SessionFactory/Metamodel

Returns:TypeConfiguration

Access to the TypeConfiguration

Annotations
@Override
handleUnusedMappedSuperclassesback to summary
private static void handleUnusedMappedSuperclasses(MetadataContext context)
initializeback to summary
public void initialize(MetadataImplementor mappingMetadata, JpaMetaModelPopulationSetting jpaMetaModelPopulationSetting)

Prepare the metamodel using the information from the collection of Hibernate PersistentClass models

Parameters
mappingMetadata:MetadataImplementor

The mapping information

jpaMetaModelPopulationSetting:JpaMetaModelPopulationSetting

Should the JPA Metamodel be built as well?

locateEntityPersisterback to summary
public EntityPersister locateEntityPersister(Class<T> byClass)

Implements org.hibernate.metamodel.spi.MetamodelImplementor.locateEntityPersister.

Doc from org.hibernate.metamodel.spi.MetamodelImplementor.locateEntityPersister.

Locate an EntityPersister by the entity class. The passed Class might refer to either the entity name directly, or it might name a proxy interface for the entity. This method accounts for both, preferring the direct named entity name.

Parameters
byClass:Class<T>

The concrete Class or proxy interface for the entity to locate the persister for.

Returns:EntityPersister

The located EntityPersister, never null

Annotations
@Override
locateEntityPersisterback to summary
public EntityPersister locateEntityPersister(String byName)

Implements org.hibernate.metamodel.spi.MetamodelImplementor.locateEntityPersister.

Doc from org.hibernate.metamodel.spi.MetamodelImplementor.locateEntityPersister.

Locate the entity persister by name.

Parameters
byName:String

The entity name

Returns:EntityPersister

The located EntityPersister, never null

Annotations
@Override
locateOrBuildEntityTypeback to summary
private static EntityTypeDescriptor<?> locateOrBuildEntityType(PersistentClass persistentClass, MetadataContext context)
locateOrBuildMappedSuperclassTypeback to summary
private static MappedSuperclassTypeDescriptor<?> locateOrBuildMappedSuperclassType(MappedSuperclass mappedSuperclass, MetadataContext context)
managedTypeback to summary
public <X> ManagedTypeDescriptor<X> managedType(Class<X> cls)

Implements org.hibernate.metamodel.spi.MetamodelImplementor.managedType.

Doc from javax.persistence.metamodel.Metamodel.managedType.

Return the metamodel managed type representing the entity, mapped superclass, or embeddable class.

Parameters
cls:Class<X>

the type of the represented managed class

Returns:ManagedTypeDescriptor<X>

the metamodel managed type

Annotations
@Override
@SuppressWarnings:unchecked
primeSecondLevelCacheRegionsback to summary
private void primeSecondLevelCacheRegions(MetadataImplementor mappingMetadata)
registerEntityNameResolversback to summary
private static void registerEntityNameResolvers(EntityPersister persister, Map<EntityNameResolver, Object> entityNameResolvers)
registerEntityNameResolversback to summary
private static void registerEntityNameResolvers(EntityTuplizer tuplizer, Map<EntityNameResolver, Object> entityNameResolvers)