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