Search code examples
javaspringjpaentitymanager

spring jpa doubts


If I am using spring JPA, then should I use any ORM frameworks such as hibernate or toplink in order to save the data to the database? I was trying to find out without using ORM frameworks. But I could not find out any link for that. I saw many articles regarding spring jpa. Request you to post some links. I have already posted a thread last week regarding annotated entity manager.

annotated entity manager null pointed exception

As I am new to spring, did not get the idea properly.


Solution

  • JPA is a standard. The standard is implemented by multiple frameworks - Hibernate, EclipseLink, OpenJPA. You must choose one of those. JPA itself only defines the interfaces and annotations, while the framework performs all the orm mapping.

    Spring's JPA is not an implementation - just a set of classes meant to make it easy to use JPA (and is agnostic of the underlying framework)