Message:
The following issue has been closed.
Resolver: Gavin King
Date: Thu, 20 Nov 2003 9:52 PM
OK, i only fixed half the problem last time. Its fixed now.
---------------------------------------------------------------------
View the issue:
http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-479
Here is an overview of the issue:
---------------------------------------------------------------------
Key: HB-479
Summary: Session.replicate() does not preserve object associations
Type: Bug
Status: Closed
Priority: Major
Resolution: FIXED
Project: Hibernate2
Fix Fors:
2.1 rc1
Versions:
2.1
Assignee:
Reporter: Brian Denny
Created: Tue, 18 Nov 2003 11:56 AM
Updated: Thu, 20 Nov 2003 9:52 PM
Description:
Calling session.replicate() on a parent object with a many-to-many-mapped List of children fails to replicate the association, i.e., no rows are created in the association table, although all the objects themselves are inserted.
In order to see this bug, the objects you are trying to replicate() must have been actually load()ed from some other session; i.e., if you instantiate some objects freshly and assign ids to them and call session.replicate(), you don't see the bug.
I have created a little project with an Ant build script which demonstrates this bug. You may download it from
http://www.briandenny.net/hibernate_bug.tgz
---------------------------------------------------------------------
JIRA INFORMATION:
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
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
|