Top "Spring-data-jpa" questions

Spring Data - JPA is part of the Spring Data umbrella project which makes it easy to implement JPA based repositories

How to test Spring's declarative caching support on Spring Data repositories?

I have developed a Spring Data repository, MemberRepository interface, that extends org.springframework.data.jpa.repository.JpaRepository. MemberRepository has a …

spring testing spring-data spring-data-jpa spring-cache
Spring Data JDBC / Spring Data JPA vs Hibernate

What are the typical real life scenarios where one would choose Spring Data JDBC / Spring Data JPA vs Hibernate? I …

hibernate spring-data spring-data-jpa spring-data-jdbc
Passing List<Integer> in spring data jpa native query

Using spring data JPA, I am trying to make this sort of query (it is more complex, this is a …

jpa jpa-2.0 spring-data-jpa jpa-2.1
Fetching only first/last element using Spring Data JPA and @Query annotation

EDIT: Solutions to this problem are provided in the second and fourth answer regarding this question setMaxResults for Spring-Data-JPA annotation? …

java spring spring-data-jpa jpql
Spring Data JPA delete native query throwing exception

I have a User entity and a Role entity. The relationship is defined like this: @OneToMany @JoinTable(name="USER_ROLES", …

java jpa spring-data-jpa nativequery
JpaSpecificationExecutor JOIN + ORDER BY in Specification

I have a query using a JOIN and ORDER BY and want to use it within my repository using the …

java mysql jpa spring-data-jpa criteria-api
Spring Boot & JPA: Implementing search queries with optional, ranged criteria

This is an SSCCE, shows research, isn't a dupe and is on topic!!! Spring Boot REST service and MySQL here. …

spring-boot spring-data-jpa jpql querydsl query-by-example
Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Validation failed for query for method public abstract

I'm developing Spring MVC + Spring-data-jpa + querydsl to which I'm newbie. When I write a code for querydsl (before that code …

java spring-mvc spring-data-jpa querydsl
Custom Query in Spring JPA Repository with Pagination

I have tried implementing JPA Repository with Spring Boot it works fine. Now if i try to implement custom query …

hibernate spring-mvc spring-boot spring-data-jpa data-paging
Getting error Could not locate appropriate constructor on class

I am trying to map native SQL result to my POJO. Here is the configuration. I am using spring. <…

spring-data-jpa hibernate-4.x jpa-2.1