-
-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Bad SQL grammar is thrown when sorting using foreign key #23847
Comments
@rjbgaspar can you contribute with a PR? |
Hi @mshima, I would like to, but unfortunately I don't know the generator project. |
Documentation is been rewritten in #23305. |
@rjbgaspar Here's one way that we try to make it easy to contribute:
Please let us know if you have suggestions for improvement! |
Hello, @rjbgaspar. You need to change the destination of your PR from your fork to the main generator-jhipster project so all our CI tests will run. |
Sory @mraible, @deepu105 need help! I could figure out how to do it, This is what i have tried after generating the project and push it to GH main branch as your instructions git remote add upstream [email protected]:jhipster/generator-jhipster.git Output
git fetch upstream # Sync the Fork Go into GH and create the PR, i do not see the remote repository to link the pull request |
This is not the path for the file that needs changes. The path is You can see the current version here. |
Hi,
Overview of the issue
Unable to sort on foreign key, an exception is thrown because the ORDER BY contains an invalid column.
The generated SQL is as follow:
As shown Column "E_ARTIST.NAME" is not found, it should be ARTIST.NAME.
Exception detail
Motivation for or Use Case
n.a.
Reproduce the error
Generate a new project using the JDL provided in "JHipster configuration" section, start the project, go for instance to “Albums” entity and click the arrow to sort by “Artist”.
Related issues
n.a.
Suggest a Fix
As to my knowledge, we cloud change the EntityManager component to detect “.” and correct the order field as follow.
Just saying, maybe it could be better...
JHipster Version(s)
Release 7.9.4 (2023-09-05) this is only affecting the reactive stack.
JHipster configuration
The following JDL can be use to demonstrate the issue
JDL definitions
Entity configuration(s)
entityName.json
files generated in the.jhipster
directoryn.a.
Browsers and Operating System
n.a.
The text was updated successfully, but these errors were encountered: