[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-2439) delay IDENTITY insertions in the case of FlushMode.MANUAL/NEVER
Christian Bauer (JIRA)
noreply at atlassian.com
Fri Feb 23 03:54:31 EST 2007
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-2439?page=comments#action_26236 ]
Christian Bauer commented on HHH-2439:
--------------------------------------
Sure it would be nice to have it in FlushMode.MANUAL as well, without auto-commit. I'm only worried about breaking stuff.
About the spec: It's not in there. The specification is very clear: persist() brings an entity instance into managed state, an entity instance has an assigned identifier value if it is in managed state. This is a guarantee we are already breaking with persist() and auto-commit. The spec does not mention anything about "assigned at flush-time". I opened a JIRA case a year ago about it and was told by Gavin that this is fine within the spec. But really, it's not there and I carefully avoided saying that in he book. If someone found a section in the spec that allows it, I need the number.
> delay IDENTITY insertions in the case of FlushMode.MANUAL/NEVER
> ---------------------------------------------------------------
>
> Key: HHH-2439
> URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-2439
> Project: Hibernate3
> Type: Improvement
> Components: core
> Reporter: Steve Ebersole
> Assignee: Steve Ebersole
> Fix For: 3.2.3
>
>
> Much like we do now in 3.2 for out of transaction operations, we should delay performing insertions for post-insert generators with FlushMode.isManualFlushMode
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
More information about the hibernate-issues
mailing list