JPA 2 defines a new typesafe Criteria API which allows criteria queries to be constructed in a strongly-typed manner, using metamodel objects to provide type safety. For developers it is important that the task of the metamodel generation can be automated. Hibernate Static Metamodel Generator is an annotation processor based on the [Pluggable Annotation Processing API] with the task of creating JPA 2 static metamodel classes. The following example show two JPA 2 entities Order and Item, together with the metamodel class Order_ and a typesafe query...
( keywords in 0 s, posts in 0 s )
Findings & News
Share what you like and what inspires you.
Get your tech brand or product in front of software developers.
For more information Contact us
Posts you may like