Connecting to relational databases using Spring Data JPA

Spring Data Common provides the base interfaces for Spring Data modules. Spring Data JPA provides implementations for talking to relational databases using JPAs. The important interfaces and implementations are as follows:

  • JpaRepository is the JPA-specific repository interface:
   public interface JpaRepository<T, ID extends Serializable>
extends PagingAndSortingRepository<T, ID>, QueryByExampleExecutor<T>
  • SimpleJpaRepository is the default implementation of the CrudRepository interface for JPAs:
   public class SimpleJpaRepository<T, ID extends Serializable>
implements JpaRepository<T, ID>, JpaSpecificationExecutor<T>
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset