Java Mailing List Archive

http://www.gg3721.com/

Home » Hibernate Issues List »

[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

Anupam M (JIRA)

2008-09-23


Author LoginPost Reply
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

   
_______________________________________________
hibernate-issues mailing list
hibernate-issues@(protected)
https://lists.jboss.org/mailman/listinfo/hibernate-issues
©2008 gg3721.com - Jax Systems, LLC, U.S.A.