ObjectDB ObjectDB

managedType(cls) - JPA Metamodel's method

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