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