Jakarta Persistence (JPA) Interface
jakarta.persistence.metamodel.Metamodel
Provides access to the metamodel of persistent entities in the persistence unit.
- Since:
- Jakarta Persistence (JPA) 2.0
Public Instance Methods
- Parameters:
cls- the type of the represented embeddable class
- Returns:
- the metamodel embeddable type.
- Throws:
- if not an embeddable class.IllegalArgumentException
- Since:
- Jakarta Persistence (JPA) 1.0
- Parameters:
entityName- the name of the represented entity
- Returns:
- the metamodel entity type.
- Throws:
- if not an entity.IllegalArgumentException
- See Also:
- Since:
- Jakarta Persistence (JPA) 3.2
- Parameters:
cls- the type of the represented entity
- Returns:
- the metamodel entity type.
- Throws:
- if not an entity.IllegalArgumentException
- Since:
- Jakarta Persistence (JPA) 1.0
Returns am empty set if there are no embeddable types.
- Returns:
- the metamodel embeddable types.
- Since:
- Jakarta Persistence (JPA) 1.0
- Returns:
- the metamodel entity types.
- Since:
- Jakarta Persistence (JPA) 1.0
- Returns:
- the metamodel managed types.
- Since:
- Jakarta Persistence (JPA) 1.0
- Parameters:
cls- the type of the represented managed class
- Returns:
- the metamodel managed type.
- Throws:
- if not a managed class.IllegalArgumentException
- Since:
- Jakarta Persistence (JPA) 1.0