-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix sorting issue #39
Conversation
It took me a while to figure out what's going on. It seems that the sorting currently does not take the mapping into account. However, with the However, with custom column names, it breaks.
I just pushed a new fix which makes use of the |
affd4f3
to
106be73
Compare
...sl/src/test/java/com/infobip/spring/data/jdbc/sorting/SortingEntityPagingRepositoryTest.java
Outdated
Show resolved
Hide resolved
You don't have to add tests for JPA as there's no custom logic for it in this project. |
Will do! |
Done! |
@@ -85,9 +88,15 @@ public QuerydslR2dbcRepositoryFactory(R2dbcEntityOperations operations, | |||
return RepositoryFragment.implemented(simpleJPAQuerydslFragment); | |||
} | |||
|
|||
@SuppressWarnings("unchecked") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this can be moved above line 97 to minimize the scope (since it's merged I'll do it on master)
Fixes #38
First I created a test that replicates the issue, and added a possible fix in a separate commit.
Do I need to add the same tests for the other packages (JPA/R2DBC)?