程序包 org.hibernate

接口 Metamodel

  • 所有超级接口:
    javax.persistence.metamodel.Metamodel
    所有已知子接口:
    MetamodelImplementor
    所有已知实现类:
    MetamodelImpl

    public interface Metamodel
    extends javax.persistence.metamodel.Metamodel
    作者:
    Steve Ebersole
    • 方法详细资料

      • 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
      • getImportedClassName

        String getImportedClassName​(String className)
      • 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