PanacheEntityBase.getSession is a disastrous naming decision #43465
mayusoma-redhat
started this conversation in
Design Discussions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
For more context:
6f859d4
Session is a fairly common name in any dataset and making it reserved is annoying for new projects but disastrous when migrating from older versions, as it affects the whole stack. From the database to the JSON generated for the frontends and all the unit tests, if you used a
session
property in any of your models, you're done for.A better naming like
getHibernateSession
or similar should help avoid any unnecessary pains for us Quarkus developers.Thanks
Beta Was this translation helpful? Give feedback.
All reactions