57 questions
1
vote
0
answers
39
views
Why DefaultProjectionInformation.collectDescriptors() ignoring Default methods?
I wonder what is the reason of ignoring default methods when getting descriptors for DefaultProjectionInformation
I'm using spring-data-mongodb. When I try to execute a query with projection:
// ...
1
vote
1
answer
2k
views
Issues upgrading to Spring Boot 3.1.2 ad Spring Data Solr 4.3.15
I was using Spring Boot 2.x and with Spring Data SOLR 4.3.12 and Spring Data Commons 2.7.14, my app works normally connecting and querying SOLR.
I upgraded Spring Boot to 3.1.2 and spring Data SOLR 4....
0
votes
1
answer
48
views
What's the order of PersistentProperty instances are iterated over for a Spring Data PersistentEntity?
What is the access order of PersistentPropertys when iterating over them? Is it the same as in the definition of PersistentEntity, or is it random? I couldn't find any information about this in the ...
0
votes
0
answers
213
views
Upgrading spring-boot from 2.3.7 to 2.5.8 throwing failied to instantiate requestMappingHandlerAdapter
I am trying to upgrade spring-boot from 2.3.7 to 2.5.8 and seeing the below error in one of the SpringBootTest
java.lang.IllegalStateException: Failed to load ApplicationContext
at org....
1
vote
0
answers
307
views
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.
...
1
vote
0
answers
1k
views
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....
0
votes
1
answer
909
views
spring data cassandra : how to tune the return type of an update @Query
Let’s say I have a table like this
@Table(value = "myTable")
public class MyRow {
private UUID id; // primary key
private String state;
}
I have a query that updates a row based ...
0
votes
1
answer
511
views
Spring Data TypedSort with nested property criteria support
I am trying to define the following sort criteria:
TypedSort<Task> typedSort = Sort.sort(Task.class);
Sort typedSortCriteria = typedSort.by(task -> task.getAssignee().getLastName())
....
0
votes
0
answers
846
views
How can I order by integer in a string in Spring JPA's CriteriaBuilder?
My data consists of strings that can be numbers or strings ("12" should be seen as a number while "12REF" should be seen as a string).
I am looking to implement an order by in my ...
1
vote
0
answers
363
views
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:
"...
0
votes
0
answers
326
views
OptimisticLockingFailureException is not thrown by spring data couchbase
I am trying to migrate my application from spring boot 2.2.6 to 2.3.6. This update also updates the spring-data-couchbase 3.2.6 to 4.0.2. Earlier version was throwing OptimisticLockingFailureException ...
1
vote
1
answer
797
views
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://...
0
votes
1
answer
120
views
Problem with upgrading of libraries (spring) in JAVA
My project contains a lot libraries and I want update following:
spring from 5.0.10.RELASE to 5.3.18 or higher
spring-content
spring-core
spring-beans
spring-aop
spring-context-support
spring-orm
...
0
votes
0
answers
438
views
package issue when using spring-data-commons with spring-boot-2.1.x
I am working on Spring Boot migration from 1.5.12 to 2.1.14. We are using Gradle as a build tool, so as part of Spring Boot migration we had to change
Gradle from 3.x to 4.x and trying to update the ...
4
votes
2
answers
4k
views
Does CrudRepository.save return null for spring data 1.13.18.RELEASE
I understand that for the current version(2.x.x) of spring-data-commons it is guaranteed that the return value of CrudRepository.save() will never be null. However, what about the older versions, ...