How to create a Java program using Hibernate 4.3 JPA 2.1?
I my project I have to use the latest version of Hibernate and JPA and write the code for interacting it with the database.
I know that the latest version of Hibernate is 4.3 and JPA is JPA 2.1. My problem is to write the integrated code to use Hibernate 4.3 through JPA 2.1 in my application.
Thanks in advance.
Yes you are right the latest version of Hibernate is Hibernate 4.3.1.Final which is just released.
The JPA latest version is JPA 2.1.
Now Hibernate 4.3.x is full compliant to the JPA 2.1 specification. You can use Hibernate with your JPA 2.1 applications.
Check the tutorial Hibernate 4.3 and JPA 2.1 Example.
Above example will teach you how to use Hibernate 4.3 with JPA 2.1.