Comments (2)
This is correct and expected. Sort.Order.desc("views_amount");
would refer to a nested property amount
in the views
property of Article
or Employee
. Sort
refers always to property names unless the query is a native one. Spring Data uses _
as separator to force property name splitting.
from spring-data-jpa.
Could you provide a minimal sample project?
from spring-data-jpa.
Related Issues (20)
- weird vscode HQL syntax error in Spring Boot HOT 1
- Investigate 'slim' Specification API
- Possible memory leak and failure to restore the observation scope when using a JPA repository from a GraphQL controller HOT 3
- Implement nested Hibernate filters for entities HOT 2
- JpaRepository.getReferenceById not working in Kotlin project
- InvalidApiUsageException: Unable to locate persister HOT 1
- POST_UPDATE not raised in OneToMany join HOT 3
- Jakarta Persistence Query Timeout does not work for Spring Data JPA findBy and findAll methods on MySQL and Oracle DBs HOT 8
- JpaSpecificationExecutor.findBy inserts wrong limit/offset into SQL Query HOT 9
- JpaRepository generated query differs HOT 2
- CASCADING DELETE not working as expected in derived query HOT 1
- Π‘an no longer use `distinct` and `cast(... as ...)` together HOT 1
- Interface-based projection does not work for queries with declared fields when returned interface is implemented by the entity HOT 2
- Release 3.2.9 (2023.1.9)
- Release 3.3.3 (2024.0.3)
- pageable sort ignoreCase and derived query feature ignoreCase are not in sync
- `<id-class>` tag in `orm.xml` not working HOT 8
- PostgreSQL @Modifying alter native query doesn't resolves named parameters HOT 1
- Spring data JPA error for field with @jakarta.persistence.Convert HOT 1
- Native query with #sort generates a broken query HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spring-data-jpa.