Jakarta Persistence (JPA) Method
EntityType<?> entity(
String entityName
)
Return the metamodel entity type representing the entity.
- Parameters:
entityName- the name of the represented entity
- Returns:
- the metamodel entity type.
- Throws:
- if not an entity.IllegalArgumentException
- See Also:
- Since:
- Jakarta Persistence (JPA) 3.2