Jakarta Persistence (JPA) Method
ManagedType<X> managedType(
Class<X> cls
)
Return the metamodel managed type representing the entity, mapped superclass, or embeddable class.
- 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