Skip to content
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

GitHub issue #1278: OrderBy support in simplified JPA queries for 1.5.x #1343

Conversation

xabolcs
Copy link
Contributor

@xabolcs xabolcs commented Jan 4, 2021

Pull Request Checklist

Helpful things

Purpose

This pull request:

Background Context

I voted for creating a preparing commit to make the cherry picking as seamless as possible.
I added (cherry picked from commit xxxxxx) the cherry picked commits to make it clear this is an old_master -> master port

I could add a whitespace fixup commit, as the original commits used TABs for indentation.

References

All details are in the original issue: #1278

@xabolcs
Copy link
Contributor Author

xabolcs commented Jan 4, 2021

Ohh, looks like I have to fix the test too. 🙃

xabolcs and others added 5 commits March 23, 2022 19:17
…om old_master to master

Commit b91659a
("[playframework#878] Add OrderBy support in simplified queries") was never ported
to master.

The changes from Pull Request playframework#504 touched some parts of it,
therefore half of the OrderBy change sneaked in to the "new" master.

Fixing by removing the irrelevant OrderBy change.

In method findByToJPQL in file framework/src/play/db/jpa/JPQL.java:
- old_master merge commit has only StringBuilder related change
- master "merge" commit has this OrderBy change too

old_master merge commit: b6797a1
ported master commit: 97c54d2

Fix: 97c54d2 ("Merge pull request playframework#504 from marcelmay/lighthouse-1502-patch")
[javac]
/home/travis/build/playframework/play1/framework/test-src/play/db/jpa/JPQLTest.java:20:
error: constructor JPQL in class JPQL cannot be applied to given types;
    [javac] 		jpql = new JPQL(null);
    [javac] 		       ^
    [javac]   required: no arguments
    [javac]   found: <null>
@xabolcs xabolcs force-pushed the github-issue-1278-orderby-support-in-simplified-jpa-1-5-x branch from bb30150 to d65b177 Compare March 23, 2022 18:18
@xabolcs
Copy link
Contributor Author

xabolcs commented Mar 23, 2022

Hi @xael-fry ,

this pull request is a fix for a regression, detailed in issue #1278.

May I ask to include that issue for Play 1.7.0?

xael-fry added a commit that referenced this pull request Apr 2, 2022
[#1278, #1343]  OrderBy support in simplified JPA queries for 1.5.x
@xael-fry xael-fry merged commit d65b177 into playframework:master Apr 2, 2022
@xael-fry xael-fry added this to the 1.7.0 milestone Apr 2, 2022
@xael-fry xael-fry added the defect label Apr 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants