In the previous post JPA basic example with EntityManager , Spring and Maven we use JPA through an entityManager instance.
In this post we are going how we can create a database metamodel in our project (At this point let’s be clear, I’m not talking about annotated Java classes with @Entity, but Java classes to prepare queries from them).For that purpose we are going to use the JPA 2.0 Criteria API.
Read the rest of this entry »