entity(cls) - JPA Metamodel's method
Method javax.persistence.metamodel.Metamodel
EntityType<X> entity(
Class<X> cls
)
- Parameters:
-
cls
- the type of the represented entity
- Returns:
- the metamodel entity type
- Throws:
-
IllegalArgumentException
- if not an entity
- Since:
- JPA 2.0