Register now or log in to join your professional community.
I am building a java web project using Mysql DB, which will be the best choice to choose , Hibernate / JPA ?
JPA is just an API. you will need JPA compatible libraries if you want to use it. As far as i know, hibernate framework offers the best JPA implementation.
JPA will not let you depend on hibernate and will allow you to switch to other JPA drivers/implementations without changing your code.
Hibernate is used more and is advanced than JPA so you should start with Hibernate.
JPA is an interface,Hibernate is providing implentation of JPA..
You can use it two ways
1.JPA+JPA provider(like Hibernate,Toplink,Spring Data JPA..)
2.or only use Hibernate.