Latest posts by Prasad Kharkar (see all)
- Using PrimeNG themes with angular apps - August 20, 2017
- Using primeng with angular 4 - July 31, 2017
- CRUD application using angular 4 spring rest services spring data jpa - June 16, 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