Skip to content

StringQuery incorrect alias definition for hql have join query [DATAJPA-1781] #2074

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
spring-projects-issues opened this issue Sep 22, 2020 · 1 comment
Assignees
Labels
in: query-parser Everything related to parsing JPQL or SQL type: bug A general bug

Comments

@spring-projects-issues
Copy link

sdandroid opened DATAJPA-1781 and commented

@Query("select u from User as u left join  u.roles as r")

the StringQuery  get alias is  as.

 


Affects: 2.3.4 (Neumann SR4)

@gregturn
Copy link
Contributor

Added a couple test cases verifying that the new HQL/JPQL parsers correctly pick the FROM clause's alias.

@gregturn gregturn added this to the 3.1 RC1 (2023.0.0) milestone Mar 22, 2023
klajdipaja pushed a commit to klajdipaja/spring-data-jpa that referenced this issue Mar 24, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
in: query-parser Everything related to parsing JPQL or SQL type: bug A general bug
Projects
None yet
Development

No branches or pull requests

3 participants