Questions tagged [spring-data-commons]

The Spring Data Commons project applies core Spring concepts to the development of solutions using many non-relational data stores.

The Spring Data Commons project applies core Spring concepts to the development of solutions using many non-relational data stores.

The goal of Spring Data repository abstraction is to significantly reduce the amount of boilerplate code required to implement data access layers for various persistence stores.

Reference: http://docs.spring.io/spring-data/data-commons/docs/1.6.1.RELEASE/reference/html/

58 questions
0
votes
1 answer

Can it register an domain event in the constructor of aggregate root, when using Spring Data Common

The aggregate will be created by some application service, not by another aggregate. Like this SomeAggregate aggregate = new SomeAggregate(); repo.save(aggregate); The expectation is that the aggregate is saved and one SomeAggregateCreated event is…
Oliver Liu
  • 13
  • 5
0
votes
1 answer

Exception while using spring data commons for Page.map method

I am getting below exception on executing jar : Exception in thread "main"…
Nakul Kumar
  • 325
  • 1
  • 5
  • 11
0
votes
1 answer

OrderBy results in error with older Spring Data

I wanted to write a method that returns a paged and sorted list of entities, and I was hoping that Spring Data can derive the query from the method name directly. The following repository definition from a shared module works well when used in one…
naXa stands with Ukraine
  • 35,493
  • 19
  • 190
  • 259
0
votes
1 answer

Incompatible Spring dependencies (NoSuchMethodError when AnnotationRepositoryConfigurationSource constructor is called)

I can't start my Spring Boot application anymore after adding persistence. The error is: java.lang.NoSuchMethodError:…
0
votes
1 answer

Cannot pass @SortDefault Sort object into controller method?

It is stated in the documentation of @SortDefault that Annotation to define the default Sort options to be used when injecting a Sort instance into a controller handler method. But the fact is, I got this exception: Failed to instantiate…
sancho21
  • 3,511
  • 1
  • 39
  • 45
0
votes
1 answer

Why can't I build Spring Data Commons?

I am trying to build spring-data-commons on my machine: I did the following : $ git clone --depth 1 https://github.com/spring-projects/spring-data-commons.git $ cd spring-data-commons $ mvn clean install I got: [ERROR] COMPILATION ERROR : [INFO]…
Muhammad Hewedy
  • 29,102
  • 44
  • 127
  • 219
0
votes
1 answer

Variables with underscores create compile error within derived query methods (spring-data)

Variables with underscore create error saying "Description Resource Path Location Type Invalid derived query! No property _db found for type String! Traversed path: Trnsction.ddate. ..." I have "spring-data-commons » 1.11.2.RELEASE" and…
iwsnmw
  • 602
  • 1
  • 6
  • 11
0
votes
1 answer

Spring boot 1.3.0 upgrade and JPA custom method not working

After upgrading to spring boot version 1.3.0.RELEASE, I see following failure when trying to start. Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'productRepository': Invocation of init method…
itwarilal
  • 1,314
  • 1
  • 10
  • 17
0
votes
1 answer

How can I use a custom ID conversion with DomainClassConverter?

I have a SQL database where primary keys are UUIDs, but the canonical string representation of a UUID is very long, and I would like to use a shortened version (Base58) in my URLs. Spring Data's DomainClassConverter will convert MVC request…
0
votes
1 answer

Java HQL - excluding rows if 1 to many relationship contains specific value

Wondering if you could help me out. I am needing a bit of help using HQL. I currently have two tables, car and carStatus. The car table stores info such as make, model, year etc. The carStatus table contains information on the status of the car,…
J145
  • 607
  • 1
  • 11
  • 16
0
votes
1 answer

Not able to insert data using MongoTemplate of Spring data MongoDB

``I am getting the following exception while instantiatingthg mongoTemplate Exception in thread "main" java.lang.NoClassDefFoundError: org/springframework/data/mapping/model/FieldNamingStrategy at…
0
votes
0 answers

Spring Data Populator configuration: org.xml.sax.SAXParseException

I would like to use the Spring Data Populator, but I am getting the SAXParseException: Exception in thread "main" org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Failed to import bean definitions…
ppi
  • 86
  • 7
-1
votes
1 answer

Upgrading spring-data-commons from 1.12.10.RELEASE TO 1.13.12.RELEASE throwing error

2018-07-16 10:58:14 [main] ERROR o.s.boot.SpringApplication - Application startup failed java.lang.IllegalStateException: Error processing condition on org.springframework.boot.devtools.autoconfigure.DevToolsDataSourceAutoConfiguration at…
1 2 3
4