A typesafe criteria query API for JPA
Gavin King suggests a different approach to the JPA EG with regard to the new Criteria api. This approach comes in three layers:
- A metamodel API for JPA
- A query API where types and attributes are specified in terms of metamodel API objects
- Support for third-party tooling which would generate a typesafe metamodel from the entity classes
Full story:
