[hibernate-issues] [Hibernate-JIRA] Created: (HHH-3490) replicate breaks an object's collections in the destination session if they were not initialized in the source session

Renat Akhmerov (JIRA) noreply at atlassian.com
Tue Sep 23 04:36:05 EDT 2008


replicate breaks an object's collections in the destination session if they were not initialized in the source session
----------------------------------------------------------------------------------------------------------------------

                 Key: HHH-3490
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-3490
             Project: Hibernate Core
          Issue Type: Bug
          Components: core
    Affects Versions: 3.3.1
         Environment: Hibernate 3.3.1, PostgreSQL 8.3.1
            Reporter: Renat Akhmerov


We have a class mapped with hibernate which has a lazily loaded collection. When we try to replicate an object of this class with existing associated collection items to another database hibernate removes collection items in the destination database for this object in the case if the collection has not been initialized in the scope of source session. Is this correct behavior or is this a bug?

The mapping is:

<hibernate-mapping package="paysys.domain">
	<class name="Service" table="SERVICE">
               ..............
		<set name="operationClasses" table="OPERATION_CLASSES">
			<key column="SERVICE_ID" />
			<element column="CLASS" type="class" />
		</set>
                ...........
       </class>

Actually this happens for seemingly any collection type, for instance, list.

Please, note if you need more explanations on this issue.

-- 
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