Difference between Spring Data JPA and JPA
JPA (Java Persistence API) What is JPA? JPA, the Java Persistence API, is the standard specification for object-relational mapping (ORM) in Java. ORM allows automatic mapping between an object and a relational database. JPA is a collection of interfaces used for ORM. With JPA, developers can develop using object-oriented programming, and JPA will automatically generate the appropriate SQL for the relational database and execute it. Features of JPA Standard specifications: JPA is the standard specification for implementing ORM in Java. Object-oriented development: With JPA, developers can write code using an object-oriented approach. Automatic SQL generation: JPA automatically generates and executes SQL without requiring developers to write SQL statements. Implementation required: JPA is an interface, so it requires an implementation. Spring Data JPA What is Spring Data JPA? Spring Data JPA is a technology from Spring that makes it easier to use JPA. Using JPA requires many settings, such as EntityManagerFactory, EntityManager, and EntityTransaction, but Spring Data JPA handles these settings. Spring Data JPA also provides additional features to JPA. ...