Spring Data JPA

manual : https://docs.spring.io/spring-data/jpa/docs/current/reference/html/

Features

  • Sophisticated support to build repositories based on Spring and JPA
  • Support for Querydsl predicates and thus type-safe JPA queries
  • Transparent auditing of domain class
  • Pagination support, dynamic query execution, ability to integrate custom data access code
  • Validation of @Query annotated queries at bootstrap time
  • Support for XML based entity mapping
  • JavaConfig based repository configuration by introducing @EnableJpaRepositories.

Gradle Dependencies

dependencies {
    compile 'org.springframework.data:spring-data-jpa:2.0.10.RELEASE'
}repositories {
    maven {
        url 'https://repo.spring.io/libs-release'
    }
}