Welcome to the new Spring.io forums!
If this is your first visit, be sure to check out the
by clicking the link above, and for security reasons, use the
forgot password link to reset your password..
You may have to register before you can post: click the register
link above to proceed. To start viewing messages, select the forum that you want to visit
from the selection below.
JPA 2.0 has introduced Criteria API - basically building your queries using java objects and thereby do a compile time checking on the validity of the queries rather than realizing a wrong JPQL query syntax in runtime (plus java developers who are averse to SQL syntax might prefer this more),
As a developer to actually use Criteria API, you will be needing a metamodel class corresponding to the actual entities. These metamodel classes are typically generated
here is a nice article on it (and is actually the first link when you google ).