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 persist JSR-310 types with Spring Data JPA?

I am trying to use Spring Data JPA 1.8 with the Java 8 Date/Time API JSR-310. Everything seems to work, until …

jpa java-8 spring-data spring-data-jpa java-time
Spring Boot Data JPA - Modifying update query - Refresh persistence context

I'm working with Spring Boot 1.3.0.M4 and a MySQL database. I have a problem when using modifying queries, the EntityManager …

spring hibernate spring-boot spring-data spring-data-jpa
Using @Version in spring-data project

I've been working on a RESTful webservice with spring-data. A few days ago a special spring-data jpa REST framework was …

java hibernate spring-data spring-data-jpa spring-data-rest
Spring - Multiple Spring Data modules found, entering strict repository configuration mode

I am using Spring boot 2 with Spring Data, Spring-Data-Elastisearch and Spring-data-Redis(for http sessions). When i start the app. I'm …

spring-boot spring-data spring-data-jpa spring-data-elasticsearch spring-data-redis
Spring data jpa. Find max if no result return default value

I've implemented in my spring repository interface: @Query("SELECT max(ch.id) FROM MyEntity ch") Long getMaxId(); It works correctly …

java spring spring-data-jpa hql
Spring @Transactional with a transaction across multiple data sources

I have to update two data sources as part of one transaction. That is - I do an update in …

spring hibernate transactions spring-data-jpa transactionmanager
how to store PostgreSQL jsonb using SpringBoot + JPA?

I'm working on a migration software that will consume unknown data from REST services. I already think about use MongoDB …

postgresql spring-boot spring-data-jpa jsonb
Difference between findBy and findOneBy in Spring data JPA

All i know so far is that FindBy can return multiple results while FindOneBy will return a single result or …

java hibernate spring-boot spring-data-jpa jpa-2.0
Return value of JPA query when no matches found

I'm using Spring JPA named querys in my repository. My problem is, that I can't find anywhere information what would …

java spring-boot spring-data-jpa named-query
Spring-Data-JPA with QueryDslPredicateExecutor and Joining into a collection

Let's say I have a data model like this (pseudocode): @Entity Person { @OneToMany List<PersonAttribute> attributes; } @Entity PersonAttribute { @…

java spring-data spring-data-jpa querydsl