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

Use cases of methods of QueryByExampleExecutor<T> interface in Spring data JPA

What are the use cases of the methods of this interface QueryByExampleExecutor<T> in Spring data JPA. I …

java spring spring-data spring-data-jpa query-by-example
Spring data jpa Specification: How to filter a parent object by its children object property

My entity classes are following @Entity @table public class User { @OneToOne private UserProfile userProfile; // others } @Entity @Table public class UserProfile { @…

spring hibernate spring-boot spring-data-jpa jpa-criteria
Using Spring Security ACL with Spring Data REST

I am trying to authorize apis exposed by Spring Data REST. So far I am able to do role-based authorization …

spring-data-jpa spring-data-rest spring-security-acl
Specifications and (null) Many-To-One Relationship

I have an MVC Controller that return a List of Contacts as JSON. On frontend side i use jquery datatables …

spring-data-jpa specifications many-to-one
com.fasterxml.jackson.databind.exc.InvalidDefinitionException: No serializer found for class org.hibernate.proxy.pojo.bytebuddy.ByteBuddyInterceptor

I already went through: Could not write JSON: Infinite recursion (StackOverflowError); nested exception spring boot & many links like this. …

spring spring-boot spring-data-jpa jpa-2.2 hibernate-6.x
Mockito cannot create Spy of @Autowired Spring-Data Repository

I am trying to overlay my whole test environment with Mockito.spy functionality so whenever I want i can stub …

java unit-testing spring-boot spring-data-jpa spy
How to write custom query in Mongo Spring Data JPA

import org.springframework.data.mongodb.repository.MongoRepository; import org.springframework.data.mongodb.repository.Query; import org.springframework.stereotype.Repository; @Repository …

spring repository spring-data spring-data-jpa spring-mongo
Always use primitive object wrappers for JPA @Id instead of primitive type?

I've found the issue with using primitive type as an object @Id for JPA in conjunction with Spring Data JPA. …

java jpa parent-child spring-data-jpa
Springboot HikariCP

I using springboot with HikariCP, but after a while my app crash and I got the error: org.springframework.transaction.…

postgresql spring-boot spring-data-jpa hikaricp