tonykang22 / study

0 stars 0 forks source link

[JPA] Spring Data JPA #129

Open callmeaxxe opened 1 year ago

callmeaxxe commented 1 year ago

spring data ?

jpa (java persistence api) ?

jpa, spring data 다른점?

Speaking precisely, Spring Data JPA is an add-on for JPA. It provides a framework that works with JPA and provides a complete abstraction over the Data Access Layer. Spring Data JPA brings in the concept of JPA Repositories, a set of Interfaces that defines query methods.

  • jpa는 저장, 조회를 위해 데이터 저장소에 접근하는 스펙(인터페이스)
  • spring data jpa는 spring data 프로젝트의 일부. JPA 구현이 아님. spring data jpa는 디폴트 jpa 구현으로 hibernate를 사용함
  • spring data jpa는 쿼리 메서드를 정의한 jpa repository들을 가지고 있다.

jdbcTemplate, jpa 다른점?