728x90 반응형 SMALL mybatis to jpa1 Spring Data JPA 기초 #1 Spring Data JPA에 대해서 알아보자. JPA 처리를 담당하는 Repository는 기본적으로 4가지가 있다. Repository CrudRepository PagingAndSortingRepository JpaRepository T는 Entity의 타입클래스이고 ID는 P.K 값의 Type 이다. CrudRepository는 관리되는 엔티티 클래스에 대해 정교한 CRUD 기능을 제공한다. public interface CrudRepository extends Repository { S save(S entity); Optional findById(ID primaryKey); Iterable findAll(); long count(); void delete(T entity); boolean exi.. 2019. 1. 7. 이전 1 다음 728x90 반응형 LIST