Top "Spring-data" questions

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

Spring data MongoDb: MappingMongoConverter remove _class

The default MappingMongoConverter adds a custom type key ("_class") to each object in the database. So, if I create a …

mongodb spring-data spring-data-mongodb
Getting LazyInitializationException on JUnit Test Case

Problem running JUnit Test inside a Spring MVC Application. Test 1 (insertTweet) seems to run fine, however on Test 2 I get …

spring hibernate junit jpa-2.0 spring-data
Spring Data MongoDB Annotation @CreatedDate isn't working, when ID is assigned manually

I'm trying to use auditing to save dateCreated and dateUpdated in my objects, but since I set ID manually, there's …

java spring mongodb spring-data spring-data-mongodb
Disable Hypertext Application Language (HAL) in JSON?

Using Spring Data REST with JPA in version 2.0.2.RELEASE. How can I disable Hypertext Application Language (HAL) in the JSON ? …

json rest spring-data spring-data-jpa spring-data-rest
Spring Data dynamic query

I'm trying to set up a dynamic query using spring data, basically I have an array with a bunch of …

java spring spring-data dynamicquery
How to make Spring server to start even if database is down?

I'm using a Spring Boot(1.4.7) & MyBatis. spring.main1.datasource.url=jdbc:mariadb://192.168.0.11:3306/testdb?useUnicode=true&characterEncoding=utf8&…

java spring-boot spring-data fail-fast
Spring Custom Query with pageable

I want to to implement pagination in spring application.I know using repository we can implement pagination but we can …

spring mongodb spring-data spring-boot spring-data-mongodb
NoSuchMethodError: org.jboss.logging.Logger.debugf

I'm trying to make a stack Spring + Spring Data + Log4J2 work. Unfortunately, when deploying the artefact on My Glassfish 4.1 …

spring spring-data glassfish-4.1 jboss-logging
Spring JPA repository transactionality

1 quick question on Spring JPA repositories transactionality. I have a service that is not marked as transactional and calls Spring …

java jpa spring-data spring-transactions
How to use spring data mongo @CompoundIndex with sub collections?

Assume that I have such entities like the following: @Document(collection = "doc_a") public class A { @Field("id") private Integer …

mongodb spring-data spring-data-mongodb