Closed rjbgaspar closed 10 months ago
@rjbgaspar can you contribute with a PR?
Hi @mshima,
I would like to, but unfortunately I don't know the generator project. I've said it before, is there any documentation that I can learn so that it can help in the future? I have taken a lot from the project and would also like to contribute.
Documentation is been rewritten in https://github.com/jhipster/generator-jhipster/pull/23305. Any suggestion is appreciated.
@rjbgaspar Here's one way that we try to make it easy to contribute:
main
branchPlease 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 git@github.com:jhipster/generator-jhipster.git
git branch fix-sorting-foreign-key
git checkout fix-sorting-foreign-key
cp ../back/EntityManager.java src/main/java/com/jhipster/demo/bootifulmusic/repository <-- The file with the changes
git add .
git commit -m "fix bad SQL grammar is thrown when sorting using foreign key"
git remote add upstream git@github.com:jhipster/generator-jhipster.git
git remote -v
Output
origin git@github.com:rjbgaspar/jhi-sorting-foreign-key.git (fetch)
origin git@github.com:rjbgaspar/jhi-sorting-foreign-key.git (push)
upstream git@github.com:jhipster/generator-jhipster.git (fetch)
upstream git@github.com:jhipster/generator-jhipster.git (push)
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 Tanks In Advance
cp ../back/EntityManager.java src/main/java/com/jhipster/demo/bootifulmusic/repository <-- The file with the changes
This is not the path for the file that needs changes. The path is generators/spring-data-relational/templates/src/main/java/_package_/repository/EntityManager_reactive.java.ejs
.
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.