Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

Is the spring data jpa compatible with jpa?


Asked by Jordyn Zuniga on Dec 12, 2021 Spring



Spring Data JPA, part of the larger Spring Data family, makes it easy to easily implement JPA based repositories. This module deals with enhanced support for JPA based data access layers.
Similarly,
Spring Data JPA allows us to connect with different relational databases through a common interface to create JPA (Java Persistence API) based repositories. We can easily create database queries by using method names, the @Query annotation, and named queries to retrieve data from the database.
And, Jakarta EE provides a good integration for JPA without adding an extra layer. But the Spring Data team took the extra step to make your job a little bit easier. The additional layer on top of JPA enables them to integrate JPA into the Spring stack seamlessly.
Indeed,
Being just a specification, JPA consists of a set of interfaces, like EntityManagerFactory, EntityManager, and annotations that help you map a Java entity object to a database table. There are several JPA providers, like HIbernate, EclipseLink, or Open JPA which you can use.
Likewise,
JPA handles most of the complexity of JDBC-based database access and object-relational mappings. It defines the set of interfaces to allow mapping of java objects in relational DB in order to persist it and at the same time access the rows data and map it back to java objects.