Hi,
JPA 2.0 will contain a Criteria API. Will hibernate implement this API ?
We are interested in this as it would allow applications to be developed without exposing a specific Persistence Layer implementation. We have a requirement that the persistence layer implementation may be changed throughout the lifetime of our project. Utilizing the JPA Criteria API would allow us to hide the hibernate implementation
DAOs do not expose the persistence layer implementation through their CRUD methods but using the hibernate Criteria API in business logic exposes hibernate (org.hibernate.Criteria etc) to the application, which we find undesirable.
Alternatively, is there another way of using the hibernate criteria API without exposing the hibernate interfaces ?
Many thanks, Ben Dave
|