Latest posts by Prasad Kharkar (see all)
- CRUD application using angular 4 spring rest services spring data jpa - June 16, 2017
- Full stack application using angular 4 and spring boot - June 14, 2017
- RESTful web services using spring boot - April 19, 2017
This article will simply introduce spring data jpa interfaces. Here onwards, we are going to see JPA specific spring data implementation.
Spring Data JPA Interfaces:
In previous article we saw generic interfaces which abstract the functionality to provide repositories and common methods. Now, JPA is corresponding to relational databases. Spring data jpa interfaces have methods to save, find and update entities.
12 public interface JpaRepository<T,ID extends Serializable>extends PagingAndSortingRepository<T,ID>, QueryByExampleExecutor<T>JPA specific extension of
1 public interface JpaSpecificationExecutor<T>Interface to allow execution of
Specifications based on the JPA criteria API.
123 public class SimpleJpaRepository<T,ID extends Serializable>extends Objectimplements JpaRepository<T,ID>, JpaSpecificationExecutor<T>
Default implementation of the
CrudRepositoryinterface. This will offer you a more sophisticated interface than the plain