-
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
fallback id generator #511
Comments
those "problems" are mostly relate to the build tool(s) being used:
OTOH I do not think we should be feeling blocked by issues in particular build tools - there are other tools having no problems with this and since Java language has package-info we should use it if it makes sense to us |
If we allowed
|
See 6f6e593. |
It would be very convenient to be able to specify a "fallback" id generator to use when
@GeneratedValue
has nogenerator
member, and the entity does not explicitly declare any@TableGenerator
or@SequenceGenerator
. This fallback could even be per-GenerationType
.One way would be via a property setting, so that, for example, you could set:
But actually the most natural solution would be to let you declare a
@TableGenerator
or@SequenceGenerator
with noname
at the package level. And then that generator would be used as the fallback for the whole package.That's a great solution, but I believe @lukasj mentioned he has some problems with us using package-level annotations.
The text was updated successfully, but these errors were encountered: