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
Add @SequenceGenerator to make Gift Entity example generally more usable #11728
Conversation
I agree that this is much more correct. I believe that without the |
Except, I don't think you should specify |
I am fine with removing that part, but in this way it is in sync with the hibernate-orm quickstart https://github.com/quarkusio/quarkus-quickstarts/blob/master/hibernate-orm-quickstart/src/main/java/org/acme/hibernate/orm/Fruit.java#L20 ? |
Well I think it would be better to change both. We shouldn't give people the idea that they need to write code that is more verbose than necessary. It's unfortunate that the Javadoc for the annotation actually has a code example with the same redundancy. |
I have updated this PR, removing the verbose jpa annotations. About the quickstarts, There are a few places where:
All of those can be removed as unnecessary verbosity, like this https://github.com/svinther/quarkus-quickstarts/commit/4231c1af9de754d4d30ba6d4157cdb95c24c84ba ? |
Nice! May I ask you to squash your commits before qe merge this? Thank you! |
@gastaldi commits squashed |
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.
Nice! Thank you!
As described in this issue here: #11591
If blindly following the tutorial, it can cause weird sequence behavior in some cases. This pr aims to make the tutorial example usable in general