JPA Method
in javax.persistence.metamodel.Metamodel

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
Return:
the metamodel managed type
Throws:
IllegalArgumentException - if not a managed class
Since:
JPA 2.0