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
2
votes
4 answers

Spring boot 2.1 + Ignite repository 2.7.0 -workaround for spring data commons issue while using @Query or query methods

Hi I'm using Spring boot 2.1.2 and Ignite 2.7.0 I have CRUD Ignite Repository with query methods @RepositoryConfig(cacheName = SmartConstants.IGNITE_ISSUE_DETAILS_CACHE) public interface IgniteIssueDetailsRepository extends…
2
votes
0 answers

Spring Data - PageRequest one-based page index

I am trying to configure Pageable and PageRequest for page number starting from 1 instead of 0. Using below code Pageable is configured successfully: @Configuration @EnableSpringDataWebSupport public class JPAConfiguration { @Bean …
Jaffy
  • 575
  • 1
  • 6
  • 15
2
votes
1 answer

Why the propertyName in PropertyPath constructor doesn't follow the Javabeans Specification?

The name of the variable propertyName in the PropertyPath class's constructor seems not following the JavaBeans Specification (8.8 Capitalization of inferred…
Lin
  • 21
  • 2
1
vote
0 answers

class file for org.springframework.data.repository.query.QueryByExampleExecutor not found

I am in the processing of upgrading spring-data-jpa and spring-data-commons dependencies. Currently, ModuleA uses 1.8.0.RELEASE of data-jpa (which internally uses 1.10.0.RELEASE of jpa-commons. ModuleB which has a dependency on ModuleA uses…
Ali
  • 558
  • 7
  • 28
1
vote
0 answers

java.lang.ClassNotFoundException: org.springframework.data.support.IsNewStrategyFactory

after upgrading spring boot version to 2.6.6 and spring data commons version to 2.6.4. seeing this error. Caused by: java.lang.ClassNotFoundException: org.springframework.data.support.IsNewStrategyFactory at…
1
vote
0 answers

Spring Boot 2.1.x Spring Framework 5.1.x You have defined query method in the repository but you don't have any query lookup strategy defined

After upgrading project spring boot from 2.0.5.RELEASE to 2.1.18.RELEASE and spring framework from 5.0.9.RELEASE to 5.1.20.RELEASE the application got UnsatisfiedDependencyException on boot run: "Invocation of init method failed; nested exception is…
1
vote
1 answer

Spring QuerydslPredicate's naming convention to snake case

I'm using Predicate from QueryDsl. Backends internally uses camelCase, but promised to use snake_case when communicating with clients. I want to use snake_case as query parameters like http://localhost:8080/inputmethod?protocol_type=SDK if I pass…
1
vote
0 answers

Multiple entityMangagerFactories ( 1PC pattern used) leads to java.lang.IllegalStateException: 'url' not set exception

I have the Spring Maven project using Java 11. Jboss WIldfly 15.0.1 Final is my deployment server. To import data (objects using Hibernate) from one data source to another data source (MySQL)- I have added one primary entityManagerFactory with…
1
vote
0 answers

Error while using ExampleMatcher with @embeded entity in spring data jpa

I have an entity with @embeded object in spring data jpa, While querying example matcher I am getting bellow error: java.lang.IllegalArgumentException: Unexpected path type for address.mylocation.country. Found…
Harsh Hardaha
  • 121
  • 1
  • 1
  • 6
1
vote
1 answer

spring data - get beans in a custom default repository implementation

Im trying to upgrade my project from spring-boot-1.4.3.RELEASE to spring-boot-1.5.9.RELEASE. In the 1.4.3.RELEASE the way I have used my custom implementation of repositories is as follow: Made an interface MyCustomRepositroy that extends…
1
vote
0 answers

StackOverflowError when starting spring-boot application

In my spring-boot maven project, one of the dependencies is bringing spring-data-commons. That scans through the classes in my project and throws StackOverflow error. The class it doesn't like is the following, class TreeNode { private T…
brownfox
  • 557
  • 8
  • 14
1
vote
3 answers

Errors caused by not having declared a dependency

Has anyone successfully got Spring Boot, Spring Data Elasticsearch, and Elasticsearch 5.x to work? I updated my pom to use spring-data-elasticsearch 3.0.0.RELEASE (just released) which has commit notes in Github saying it supports ES 5. I was…
1
vote
0 answers

spring data elasticsearch 3.0.0 and spring data commons

I am using spring data elasticsearch snapshot version (3.0.0.BUILD-SNAPSHOT) If I use ElasticsearchTemplate, I'm getting an error: java.lang.NoSuchMethodError: org.springframework.util.Assert.isTrue(ZLjava/util/function/Supplier;)V Because in…
zackim
  • 11
  • 3
1
vote
0 answers

Spring Data REST / Spring Data Commons Domain Events

I read this blog and this reference material and determined that the Spring Data Commons Domain Events does not work when applied within Spring Data REST AbstractRepositoryEventListener events (i.e., onBeforeSave, onAfterDelete, etc).…
szxnyc
  • 2,495
  • 5
  • 35
  • 46
1
vote
0 answers

How CrudRepository deals with DB Connection from ConnectionPool

I can't find any default implementation class for spring-data-commons crudrepository interface. We always implement CustomRepository extends CrudRepository and then @Autowire CustomRepository customRepository in the service class to call…
Divs
  • 1,578
  • 2
  • 24
  • 51