Top "Spring-data" questions

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

Missing CrudRepository#findOne method

I am using Spring 5 in my project. Until today there was available method CrudRepository#findOne. But after downloading latest snapshot …

java spring spring-boot spring-data spring-data-jpa
Spring Data MongoDB Date Between

I use spring data mongodb. I want the records between two dates. The following MongoDB Query works: db.posts.find({…

java spring spring-data mongodb-java
Configure specific in memory database for testing purpose in Spring

How do I configure my Spring Boot application so that when I run unit tests it will use in-memory database …

spring spring-boot spring-data spring-test spring-test-dbunit
How to generate a ddl creation script with a modern Spring Boot + Data JPA and Hibernate setup?

Currently, I'm using the default @SpringBootApplication annotation with the following properties in application.properties: spring.datasource.url=jdbc:mysql://localhost/…

hibernate spring-boot spring-data spring-data-jpa
Table 'DBNAME.hibernate_sequence' doesn't exist

I have a SpringBoot 2.0.1.RELEASE application using spring data / jpa <dependency> <groupId>org.springframework.boot</…

java mysql spring spring-boot spring-data
How to disable spring-data-mongodb autoconfiguration in spring-boot

Has anyone tried disabling autoconfiguration for mongodb in spring-boot? I am trying out spring-boot with spring-data-mongodb; Using java based configuration; …

java spring-boot spring-data spring-data-mongodb
Exception in monitor thread while connecting to server localhost:27017 while accessing MongoDB with Java

I have the following exception when running Java app for MongoDB: [localhost:27017] org.mongodb.driver.cluster : Exception in monitor thread …

java mongodb spring-data spring-data-mongodb remote-host
How to use Spring managed Hibernate interceptors in Spring Boot?

Is it possible to integrate Spring managed Hibernate interceptors (http://docs.jboss.org/hibernate/orm/4.3/manual/en-US/html/ch14.html) …

hibernate spring-data spring-data-jpa spring-boot spring-data-rest
Configure Multiple DataSource in Spring Boot with JNDI

I want to manage multiple DataSource using your Application Servers built-in features and access it using JNDI. I am using …

java spring spring-boot spring-data jndi
Spring Data - ignore parameter if it has a null value

I want to have a spring data repository interface that takes two parameters. Is there a way to make it …

spring spring-boot spring-data