-
Notifications
You must be signed in to change notification settings - Fork 2
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
Provide JPA metamodel for better queries #392
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Several points:
- please do not use alpha dependency?
- How are the static classes created? I can not see any build script / call or something. If a specific maven call is needed we should add that to the readme.
- I can find 2 static classes but we have more entities
- Is the code working? All the static attributes are never assigned to a concrete field. Maybe Spring does that as magic, no idea but have you checked that everything works as exected?
server/pom.xml
Outdated
<dependency> | ||
<groupId>org.hibernate.orm</groupId> | ||
<artifactId>hibernate-jpamodelgen</artifactId> | ||
<version>7.0.0.Alpha2</version> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please use the latest final version instead of an alpha
@hendrikebbers yea the code worked fine but I had manually created I added something like
Am able to generate something like
|
@Ndacyayisenga-droid the code that you show in your comment is exactly what I would suspect. The addition to the pom will automatically trigger the generation of the code whenever java is compiled. Since it is no "hand-written" code it is added to the generated-sources folder in the The interesting point here is that the generated sources will not be commited by git (since the So what you put in your comment (the pom addition) should be what is part of the PR. I assume nothing more is needed :) |
Fixes #385