EntityType<X> entity(
Class<X> cls
)
Return the metamodel entity type representing the entity.
- Parameters:
cls
- the type of the represented entity
- Return:
- the metamodel entity type
- Throws:
- IllegalArgumentException - if not an entity
- Since:
- JPA 2.0