Top Methods
org.hibernate

public Interface Metamodel

extends Metamodel
Known Direct Subinterfaces
org.hibernate.metamodel.spi.MetamodelImplementor
Imports
javax.persistence.metamodel.EntityType

Author
Steve Ebersole

Method Summary

Modifier and TypeMethod and Description
public <X> EntityType<X>

Returns:

The entity descriptor
entity
(String
The entity-name
entityName
)

Access to an entity supporting Hibernate's entity-name feature

public default EntityType<X>
getEntityTypeByName(String entityName)

Deprecated since 5.2
public String[]

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.
getImplementors
(String
The name of the entity class
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.

public String
public SessionFactory

Returns:

The SessionFactory
getSessionFactory
()

Deprecated as a consequence of SessionFactory being deprecated.
Access to the SessionFactory that this Metamodel instance is bound to.
Inherited from javax.persistence.metamodel.Metamodel:
embeddableentitygetEmbeddablesgetEntitiesgetManagedTypesmanagedType

Method Detail

entityback to summary
public <X> EntityType<X> entity(String entityName)

Access to an entity supporting Hibernate's entity-name feature

Parameters
entityName:String

The entity-name

Returns:EntityType<X>

The entity descriptor

getEntityTypeByNameback to summary
public default EntityType<X> getEntityTypeByName(String entityName)

Deprecated

since 5.2

Annotations
@Deprecated
getImplementorsback to summary
public 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:String

The name of the entity class

Returns:String[]

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.

getImportedClassNameback to summary
public String getImportedClassName(String className)
getSessionFactoryback to summary
public SessionFactory getSessionFactory()

Deprecated

as a consequence of SessionFactory being deprecated. See corresponding docs for further information.

Access to the SessionFactory that this Metamodel instance is bound to.

Returns:SessionFactory

The SessionFactory