Package org.hibernate

Interface Metamodel

    • 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