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

Spring Data optional parameter in query method

I want to write some query methods in repository layer. This method must ignore null parameters. For example: List<…

spring hibernate spring-data spring-data-jpa jpql
How to get all results in one page using Spring Data Pagination

I want to get all the results in single page, I've tried with Pageable p = new PageRequest(1, Integer.MAX_VALUE); …

java spring spring-data spring-data-jpa spring-repositories
How to manually start a transaction on a shared EntityManager in Spring?

I have a LocalContainerEntityManagerFactoryBean as EntityManager instance. To quickly drop a full tables' content, I want to run the following …

java spring spring-data-jpa entitymanager
Spring data jpa - How to combine multiple And and Or through method name

I am trying to migrate the application. I am working on from Hibernate to Spring Data Jpa. Though spring data …

java spring-data-jpa spring-data
Spring Data JPA: Creating Specification Query Fetch Joins

TL;DR: How do you replicate JPQL Join-Fetch operations using specifications in Spring Data JPA? I am trying to build …

java spring jpa spring-data-jpa criteria-api
Spring JPA native query with Projection gives "ConverterNotFoundException"

I'm using Spring JPA and I need to have a native query. With that query, I need to get only …

java spring spring-data-jpa projection
Spring Data JPA Projection selected fields from the DB

I was testing Spring Data 1.10.4.RELEASE, following the example in Spring Data Docs http://docs.spring.io/spring-data/jpa/docs/…

java spring-data-jpa spring-data projection
LocalDateTime to ZonedDateTime

I have Java 8 Spring web app that will support multiple regions. I need to make calendar events for a customer …

java spring-data-jpa postgresql-9.3 java-time
JPQL Like Case Insensitive

I want to search data in User table by name case insensitive. @Repository public interface UserRepository extends JpaRepository<User, …

java spring jpa spring-data-jpa jpql
Apparent connection leak detected with Hikari CP

When using native sql operator IN i get exception. Although it throws an exception, it still works as it was …

java hibernate spring-boot spring-data-jpa hikaricp