Package org.hibernate

Interface Metamodel

    • Method Detail

      • getSessionFactory

        SessionFactory getSessionFactory()
        Access to the SessionFactory that this Metamodel instance is bound to.
        Returns:
        The SessionFactory
      • entity

        <X> EntityType<X> entity​(String entityName)
        Access to an entity supporting Hibernate's entity-name feature
        Parameters:
        entityName - The entity-name
        Returns:
        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.
        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