[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-4992) Version is incremented when an inverse one-to-many collection is dirtied by adding or removing read-only entities
Gail Badner (JIRA)
noreply at atlassian.com
Wed Mar 10 04:52:47 EST 2010
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-4992?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=35774#action_35774 ]
Gail Badner commented on HHH-4992:
----------------------------------
This is reproduced by VersionedEntityWithInverseOneToManyFailureExpectedTest and VersionedEntityWithInverseOneToManyJoinFailureExpectedTest in
org.hibernate.test.immutable.entitywithmutablecollection.inverse.
> Version is incremented when an inverse one-to-many collection is dirtied by adding or removing read-only entities
> -----------------------------------------------------------------------------------------------------------------
>
> Key: HHH-4992
> URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-4992
> Project: Hibernate Core
> Issue Type: Bug
> Components: core
> Reporter: Gail Badner
> Assignee: Gail Badner
>
> If a persistent, read-only entity is added to an inverse one-to-many association, and the owning entity is versioned, then, when flushed, the collection is found to be dirty, the owning entity's version is incremented, but the read-only entity is not actually added or removed from collection.
> This does not happen when the association is non-inverse.
> This situation should at least be logged.
--
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