Package org.hibernate
Interface Metamodel
-
- All Superinterfaces:
Metamodel
- All Known Subinterfaces:
MetamodelImplementor
public interface Metamodel extends Metamodel
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description <X> EntityType<X>
entity(java.lang.String entityName)
Access to an entity supporting Hibernate's entity-name featuredefault EntityType
getEntityTypeByName(java.lang.String entityName)
Deprecated.since 5.2java.lang.String[]
getImplementors(java.lang.String entityName)
Given the name of an entity class, determine all the class and interface names by which it can be referenced in an HQL query.java.lang.String
getImportedClassName(java.lang.String className)
SessionFactory
getSessionFactory()
Access to the SessionFactory that this Metamodel instance is bound to.-
Methods inherited from interface javax.persistence.metamodel.Metamodel
embeddable, entity, getEmbeddables, getEntities, getManagedTypes, managedType
-
-
-
-
Method Detail
-
getSessionFactory
SessionFactory getSessionFactory()
Access to the SessionFactory that this Metamodel instance is bound to.- Returns:
- The SessionFactory
-
getEntityTypeByName
@Deprecated default EntityType getEntityTypeByName(java.lang.String entityName)
Deprecated.since 5.2
-
entity
<X> EntityType<X> entity(java.lang.String entityName)
Access to an entity supporting Hibernate's entity-name feature- Parameters:
entityName
- The entity-name- Returns:
- The entity descriptor
-
getImportedClassName
java.lang.String getImportedClassName(java.lang.String className)
-
getImplementors
java.lang.String[] getImplementors(java.lang.String entityName)
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:
entityName
- The name of the entity class- Returns:
- 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.
- Throws:
MappingException
-
-