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 JPA REST sort by nested property

I have entity Market and Event. Market entity has a column: @ManyToOne(fetch = FetchType.EAGER) private Event event; Next I …

java spring rest spring-data-jpa spring-data-rest
How to initialize Specification of Spring Data JPA?

I have a method that does a search with filters, so I'm using Specification to build a dynamic query: public …

java spring-data-jpa dynamicquery
Spring data mongoDb not null annotation like Spring data Jpa

Like spring-data-jpa have @NotNull annotation what can be used for this in spring-data-mongodb.?

spring-data-jpa spring-data-mongodb
Can't set JPA naming strategy after configuring multiple data sources (Spring 1.4.1 / Hibernate 5.x)

I am using Spring Boot 1.4.1 which uses Hibernate 5.0.11. Initially I configured a data source using application.properties like this: spring.…

spring hibernate spring-boot spring-data-jpa
How to find all revisions for an entity using spring data envers?

I am using spring-data-envers in my spring boot application. I can successfully log the audits on my entities. Now, I …

java spring spring-data-jpa hibernate-envers
Bug in Spring Data JPA: Spring Data returns List<BigInteger> instead of List<Long>

I have DAO implementation over spring-data: public interface TestDataRepository extends CrudRepository<DpConfigData, Long> { @Query(value = "select distinct(oid) …

postgresql hibernate-mapping spring-data-jpa
Getting org.hibernate.MappingException: No Dialect mapping for JDBC type: 1111 using com.vladmihalcea:hibernate-types-5

I'm attempting to use this library for persisting JSON with JPA & Hibernate: https://github.com/vladmihalcea/hibernate-types I am …

java hibernate jpa spring-data-jpa hibernate-types
java.time.LocalDate not supported in native queries by latest Spring Data/Hibernate?

Problem: Native queries with Spring Data returning dates return java.sql.Date not java.time.LocalDate, despite the setup. Context: …

spring-data spring-data-jpa hibernate-5.x localdate jsr310
Ignore some classes while scanning PackagesToScan

I've a package (say packagesToScan) containing Classes that I wish to persist annotated with @Entity. While defining ApplicationContext configuration, I've …

spring spring-data spring-data-jpa applicationcontext
Tomcat 7 SEVERE: Context [] startup failed due to previous errors after add spring-data-jpa to dependency in pom

I have a spring rest app.It is configured with annotations. When I add spring-data-jpa dependency the application is falling …

spring-mvc annotations tomcat7 spring-data-jpa spring-orm