Difference between spring-data-jpa and spring-boot-starter-data-jpa

This is not a good question, but I noticed that there are 2 Spring JPAs for loading Spring. How different they are. I am currently trying to set up a SpringBoot 1.5.3 project along with sleep mode. I remember that I used to have Springboot installed with JPA with spring-boot-starter-data-jpa.

Most of the online examples I've seen, as well as starter.spring.io provide below dependency for Spring jpa.

<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-data-jpa</artifactId>
</dependency>

But in one of the existing projects, I came across spring -data-jpa

<dependency>
    <groupId>org.springframework.data</groupId>
    <artifactId>spring-data-jpa</artifactId>
    <version>1.11.4.RELEASE</version>
</dependency>

Doing a bit of Google did not give me if they are different or not.

In all my previous projects where I added JPA, there was JPA 2.1 / Hibernate, so I'm a little unsure which of the two to use in my new SpringBoot application.

+21
3

, starter Inliner , .. , , .

spring-boot-starter-data-jpa pom.xml, , spring-data-jpa .

Spring Boot Starters - , . Spring . , Spring JPA , spring-boot-starter-data-jpa, .

+25

pom.xml spring -boot-starter-data-jpa : https://github.com/spring-projects/spring-boot/blob/master/spring-boot-starters/spring-boot-starter-data-jpa/pom.xml

, : " Spring Data JPA Hibernate".

, spring -boot-starter-data-jpa Spring Data JPA Hibernate . , .

pom.xml spring -data-jpa, . Spring Data JPA . .

Spring JPA , Hibernate 5, (Apache) OpenJPA 2.4 EclipseLink 2.6.1. : https://docs.spring.io/spring-data/jpa/docs/current/reference/html/#new-features.1-10-0

+3

Spring Boot Spring spring-boot-starter-data-jpa starter Spring . .

spring-data-jpa spring-boot-starter-data-jpa. 1.5.3, .

spring-data-jpa, part of the large Spring Data family, simplifies the deployment of JPA-based repositories. This module deals with enhanced support for JPA-based data access layers. This makes it easy to build Spring-based applications using data access technologies.

0
source

Source: https://habr.com/ru/post/1680152/


All Articles