Switching the Java Persistence provider is straight forward and seamless if project /product uses Java Persistence API (EJB3.0) either as a standalone framework component or in a container managed environment. In my earlier blog entry, I had used TOPLINK as a provider and switching to use hibernate as a provider is fairly easy.
Here is what one need to do. None of the source code changes but the...
Lately I have been tinkering with Glassfish and happened to look at the persistence API. The persistence API is based on the EJB 3.0 specification and is made available as a standalone component. I must admit that it’s fairly straight forward and a pleasure to use.
After downloading the persistence API from Glassfish Persistence. I started with the examples provided along with the...