-
Notifications
You must be signed in to change notification settings - Fork 680
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
What happened to OrderBy support in simplified JPA queries? #1278
Comments
? |
@jvosloo Wow. You found The Lost Change. :) Support for Later, we found that @xael-fry It seems that we need to merge 3 commits with commit message |
Hehe... glad I could be helpful (and sorry for making more work for you!) 😄 |
…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>
…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>
In 1.5.1 at least, the support for OrderBy in simplified JPA queries seems to be missing?
I.e. to be able to write simplified queries like this:
Person.find("byNameOrderByName");
If I read this right: https://play.lighthouseapp.com/projects/57987/tickets/878-orderby-support-in-simplified-queries it was introduced in 1.3.x already?
Am I missing something?
The text was updated successfully, but these errors were encountered: