Can anybody tell me which persistent technology can be used instead of Hibernate which is as compatible as Hibernate (not JDBC nor EJB) any parallel technology?
Total Answers and Comments: 8
Last Update: September 02, 2009 Asked by: pravinpawade
What is the main reason for you to change from Hibernate? Is it the worry that your DAO layer becomes hibernate specific? If yes you can use JPA (Java persistence API) with it running on hibernate engine. JPA is a specification and hence the APIs you use would be from javax.persistence and not from org.hibernate! This helps you to easily shift to any ORM tool tomorrow by just unplugging Hibernate and using say Toplink or EJB 3.0 again!
Hibernate is an ORM tool. There are various other tools available in industry to achieve the functionalities provided by the Hibernate. JPA (Java Persistent API) is one of them.
There is a alternate option which I have used in past. It is little different though. This is not a ORM tool but it greatly helps in Database persistence. This is code generation utility which generates all the data access layer code.
This tool helps in migrating from one database to another database also (if you are not using any database particular database specific feature).