-
Notifications
You must be signed in to change notification settings - Fork 59
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
#589: avoid collisions in metamodel's variables #592
Conversation
@lukasj I'm not sure I like the idea of doing it for every field. I would have done it only for the fields where a collision occurs. |
While that is certainly feasible, I like the naming consistency this (unexpectedly) brings in wrt usage of the trailing underscore - it is the same for the name of the canonical class ( |
mmmrmrrmrmrmrrrmmmm I can live with it I guess. |
Hold on a sec. @lukasj, if we're adding a trailing @OneToMany(mappedBy=Book_.publisher_)
Set<Book> books; instead of: @OneToMany(mappedBy=Book_.PUBLISHER_)
Set<Book> books; WDYT? |
well, it's |
I know, but I'm pretty sure we don't need to go to court to break that convention if it's the right thing to do. |
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.
Couple of suggestions you can accept or ignore as you please.
Signed-off-by: Lukas Jungmann <lukas.jungmann@oracle.com>
Co-authored-by: Gavin King <gavin@hibernate.org>
Co-authored-by: Gavin King <gavin@hibernate.org>
Signed-off-by: Lukas Jungmann <lukas.jungmann@oracle.com>
Co-authored-by: Gavin King <gavin@hibernate.org>
Signed-off-by: Lukas Jungmann <lukas.jungmann@oracle.com>
fixes #589
this should also handle the case where the name of a named thing is with a dot (ie
Employee.findAll
)