-
Notifications
You must be signed in to change notification settings - Fork 60
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
Make TABLE-generated IDs available on PrePersist #133
Comments
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
|
This is a pretty reasonable and useful request, it seems to me, and to be honest I'm not sure why Hibernate didn't already do things this way (I guess nobody ever asked us directly). But anyway, looks like I've been able to get that working with a very straightforward change. So from our side I don't think we would have a problem adding it to the spec. @lukasj WDYT? What does EclipseLink do here? |
I have proposed #488. Let's see if other implementors object. |
EclipseLink already supports this |
OK, so I checked with the Hibernate team and they do not object to the change. |
JSR-338/3.5.3 states that
It'll be much helpful if those ids whose strategy is GenerationType.TABLE are available on PrePersist.
exempli gratia
Note that the derived column is not null and not updatable.
The text was updated successfully, but these errors were encountered: