Top "Spring-data" questions

Spring Data is an umbrella open source project which contains many subprojects that are specific to a given database.

How to get List from Page in Spring Data REST

I am using JPARespository for all my CRUD operation. Recently I wanted to implement sorting, so I went ahead with …

java spring pagination spring-data spring-restcontroller
Implementing custom methods of Spring Data repository and exposing them through REST

I'm trying to add custom methods to my Spring Data repository PersonRepository as described in 1.3 Custom implementations for Spring Data …

java spring rest jpa spring-data
Creating a read-only repository with SpringData

Is it possible to create read-only repositories using Spring Data? I have some entities linked to views and some child …

java spring jpa spring-data spring-data-jpa
How to return raw JSON directly from a mongodb query in Java?

I have the following code: @RequestMapping(value = "/envinfo", method = RequestMethod.GET) @ResponseBody public Map getEnvInfo() { BasicQuery basicQuery = new BasicQuery("{_id:…

java spring mongodb spring-data spring-data-mongodb
Best way of handling entities inheritance in Spring Data JPA

I've three JPA entity classes A, B and C with the following hierarchy: A | +---+---+ | | C B That is: @…

java spring spring-data spring-boot spring-data-jpa
QueryDsl - subquery in collection expression

I'm using spring-data-jpa and querydsl (3.2.3) I have a scenario where I'm creating set of predicates based on user filer/input. …

java spring spring-data querydsl
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 Repositories - Find where field in list

I'm trying to use spring PagingAndSortingRepository with a find MyEntity where field in fieldValues query as follows: @Repository public interface …

java spring spring-data spring-data-mongodb spring-data-commons
How to map Page<ObjectEntity> to Page<ObjectDTO> in spring-data-rest

When I hit the database with PagingAndSortingRepository.findAll(Pageable) I get Page<ObjectEntity>. However, I want to expose …

java spring spring-mvc spring-data spring-data-rest
com.datastax.driver.core.exceptions.InvalidQueryException: unconfigured table schema_keyspaces

I am trying to configure spring data with cassandra. But I am getting bellow error , when my app is deploying …

java spring cassandra spring-data datastax