程序包 org.hibernate
接口 Metamodel
-
- 所有超级接口:
javax.persistence.metamodel.Metamodel
- 所有已知子接口:
MetamodelImplementor
- 所有已知实现类:
MetamodelImpl
public interface Metamodel extends javax.persistence.metamodel.Metamodel- 作者:
- Steve Ebersole
-
-
方法概要
所有方法 实例方法 抽象方法 默认方法 已过时的方法 修饰符和类型 方法 说明 <X> javax.persistence.metamodel.EntityType<X>entity(String entityName)Access to an entity supporting Hibernate's entity-name featuredefault javax.persistence.metamodel.EntityTypegetEntityTypeByName(String entityName)已过时。since 5.2String[]getImplementors(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.StringgetImportedClassName(String className)SessionFactorygetSessionFactory()Access to the SessionFactory that this Metamodel instance is bound to.
-
-
-
方法详细资料
-
getSessionFactory
SessionFactory getSessionFactory()
Access to the SessionFactory that this Metamodel instance is bound to.- 返回:
- The SessionFactory
-
getEntityTypeByName
@Deprecated default javax.persistence.metamodel.EntityType getEntityTypeByName(String entityName)
已过时。since 5.2
-
entity
<X> javax.persistence.metamodel.EntityType<X> entity(String entityName)
Access to an entity supporting Hibernate's entity-name feature- 参数:
entityName- The entity-name- 返回:
- The entity descriptor
-
getImplementors
String[] getImplementors(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.- 参数:
entityName- The name of the entity class- 返回:
- 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.
- 抛出:
MappingException
-
-