CRUD (Create,Read,Update,Delete) operations using JPA 2.1 (Hibernate entity manager) + Maven 3.2.3 + Oracle 11.2

In this tutorial, we will explain how to make CRUD operations using JPA 2.1 (Hibernate entity manager)

Tools & technologies used in this article:

  1. Java 1.6
  2. Maven 3.2.
  3. Hibernate Entity manager 4.3.6
  4. Oracle 11.2.0
  5. Eclipse

1)  POM.xml

Add Hibernate  entity manager 4.3.6 and Oracle 11.2.0 dependencies to the project.

 2)  Create  resources/META-INF folder under “src/main” folder,  and add persistence.xml there. 





7)  Project structure
















8)  Run and see output in eclipse

Download Source Code

Posted in hibernate and tagged , , , , .

One Comment

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">