This tag is for question related to the use of Spring Data repository abstraction APIs.
I have this model: public class Event { private String name; private Date start; private Date end; } and repository as @Repository …
java spring spring-data-jpa spring-repositoriesI 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-repositoriesI've two entities, a user and a registered user. A registered user has a field of type user. I would …
java spring hibernate spring-repositoriesI have in a Spring Repo something like this: findTop10ItemsByCategIdInOrderByInsertDateDesc(List ids) I want the first 10 items where category …
spring spring-data-jpa spring-repositoriesI have a lot of JPA entities automatically created from a relational database schema. Is there any way to generate …
java spring-boot spring-data spring-data-jpa spring-repositoriesI implement pagination like this: List<Products> products = productRepository.findAllProducts(productsRequest.getInitiatorType(), "ACTIVE", new PageRequest(page, 100, Sort.Direction.…
java pagination spring-data-jpa spring-repositoriesI search for a way to get a list of Objects created on a certain LocalDateTime date saved in the …
java jpa spring-data-jpa java-time spring-repositoriesI have a server using spring boot and spring data jpa. I have two classes annotated with @RestController in my …
java spring-boot jpa spring-data-jpa spring-repositoriesI am working with spring boot tutorial from javabrains and everything was clear until putting CrudRepository inside project. Below you …
java spring spring-boot spring-repositoriesI'm trying to get a result of a query using JpaRepository, but it doesn't work for me : public interface PeticionRepository …
java spring spring-data-jpa jpql spring-repositories