Posts

Showing posts with the label Spring Data

Spring Data JPA Using Hibernate

  ORM  (Object Relational Mapping): - Process of mapping a Java class to Database tables .  - Developers can deal with Objects instead of writing SQLs.    JPA (Java Persistence API) :  - Its a standard from Oracle to perform ORM in Java EE applications. - JPA comes with Specification & API             Specification -> For JPA Vendors/Providers like Hibernate, Open JPA , Eclipse Link and etc..               API -> For developers Why JPA: Before JPA, we have to learn each ORM tool like Hibernate / Open JPA and etc depends on the ORM  we used in our application.  Now, we can learn one single API (JPA). All the vendors/Providers implements JPA. So, we can switch from one vendor to another without making any code change in our application,  JPA API : Two important classes: EntityManagerFactory EntityManager Spring Data will hide these APIs, we need not d...