-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Panache project() is not working if used with distinct + case-sensitive HQL query #29089
Comments
/cc @FroMage, @loicmathieu |
I will have a look. |
DavideD
added a commit
to DavideD/quarkus
that referenced
this issue
Nov 7, 2022
When trying to run a select distinct query with projection, Panache will lowercase the field names.
DavideD
added a commit
to DavideD/quarkus
that referenced
this issue
Nov 7, 2022
DavideD
added a commit
to DavideD/quarkus
that referenced
this issue
Nov 7, 2022
When trying to run a select distinct query with projection, Panache will lowercase the field names.
DavideD
added a commit
to DavideD/quarkus
that referenced
this issue
Nov 7, 2022
DavideD
added a commit
to DavideD/quarkus
that referenced
this issue
Nov 8, 2022
DavideD
added a commit
to DavideD/quarkus
that referenced
this issue
Nov 8, 2022
When trying to run a select distinct query with projection, Panache will lowercase the field names.
DavideD
added a commit
to DavideD/quarkus
that referenced
this issue
Nov 8, 2022
DavideD
added a commit
to DavideD/quarkus
that referenced
this issue
Nov 8, 2022
This reverts commit e8e087a.
DavideD
added a commit
to DavideD/quarkus
that referenced
this issue
Nov 10, 2022
When trying to run a select distinct query with projection, Panache will lowercase the field names.
DavideD
added a commit
to DavideD/quarkus
that referenced
this issue
Nov 10, 2022
pedroh-pereira
pushed a commit
to pedroh-pereira/quarkus
that referenced
this issue
Nov 14, 2022
When trying to run a select distinct query with projection, Panache will lowercase the field names.
pedroh-pereira
pushed a commit
to pedroh-pereira/quarkus
that referenced
this issue
Nov 14, 2022
gsmet
pushed a commit
to gsmet/quarkus
that referenced
this issue
Nov 15, 2022
When trying to run a select distinct query with projection, Panache will lowercase the field names. (cherry picked from commit e6164ca)
gsmet
pushed a commit
to gsmet/quarkus
that referenced
this issue
Nov 15, 2022
(cherry picked from commit 9becd8a)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
For an entity that has getter defined with camelCase attribute name ie:
myId
executing query:will result in:
The issue is probably here:
quarkus/extensions/panache/hibernate-orm-panache-common/runtime/src/main/java/io/quarkus/hibernate/orm/panache/common/runtime/CommonPanacheQueryImpl.java
Line 104 in 8e4ee68
Expected behavior
Distinct query should work with HQL compliant query.
Actual behavior
It does not work, an exception is raised.
How to Reproduce?
https://github.com/turing85/quarkus-panache-projection/tree/reanme-id-to-myId
Check this line: https://github.com/turing85/quarkus-panache-projection/blob/reanme-id-to-myId/src/main/java/de/turing85/panache/projection/DataResource.java#L36
Output of
uname -a
orver
Darwin Kernel Version 21.6.0: Mon Aug 22 20:19:52 PDT 2022; root:xnu-8020.140.49~2/RELEASE_ARM64_T6000
Output of
java -version
openjdk version "19" 2022-09-20 OpenJDK Runtime Environment Homebrew (build 19) OpenJDK 64-Bit Server VM Homebrew (build 19, mixed mode, sharing)
GraalVM version (if different from Java)
No response
Quarkus version or git rev
2.13.3.Final
Build tool (ie. output of
mvnw --version
orgradlew --version
)Apache Maven 3.8.4 (9b656c72d54e5bacbed989b64718c159fe39b537) Maven home: /Users/jasminsuljic/.m2/wrapper/dists/apache-maven-3.8.4-bin/52ccbt68d252mdldqsfsn03jlf/apache-maven-3.8.4 Java version: 19, vendor: Homebrew, runtime: /usr/local/Cellar/openjdk/19/libexec/openjdk.jdk/Contents/Home Default locale: en_GB, platform encoding: UTF-8 OS name: "mac os x", version: "12.6", arch: "x86_64", family: "mac"
Additional information
No response
The text was updated successfully, but these errors were encountered: