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:
IllegalArgumentException - if not a managed class.
Since:
Jakarta Persistence (JPA) 1.0