Metamodel
Provides access to the metamodel of persistent entities in the persistence unit.
- Since:
- JPA 2.0
Public Methods
- Parameters:
cls
- the type of the represented embeddable class
- Return:
- the metamodel embeddable type
- Throws:
- IllegalArgumentException - if not an embeddable class
- Since:
- JPA 2.0
- Parameters:
cls
- the type of the represented entity
- Return:
- the metamodel entity type
- Throws:
- IllegalArgumentException - if not an entity
- Since:
- JPA 2.0
Returns empty set if there are no embeddable types.
- Return:
- the metamodel embeddable types
- Since:
- JPA 2.0
- Return:
- the metamodel entity types
- Since:
- JPA 2.0
Set<ManagedType<?>> getManagedTypes()
- Return:
- the metamodel managed types
- Since:
- JPA 2.0
ManagedType<X> managedType(Class<X> cls)
- Parameters:
cls
- the type of the represented managed class
- Return:
- the metamodel managed type
- Throws:
- IllegalArgumentException - if not a managed class
- Since:
- JPA 2.0