-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: XML serialization and collections
PostPosted: Fri Sep 03, 2004 7:58 pm 
Beginner
Beginner

Joined: Tue Aug 26, 2003 4:19 pm
Posts: 42
I'm working on an application accessible via both the web (Struts), and Soap (Axis). I'm using Castor to marshall/unmarshall my domain objects and I'm noticing that when I change an object and send it back to the server, when I call update(), Hibernate deletes and recreates my many-to-many relationships, even though I haven't changed the contents of the collection. When I inspect the object in my debugger after unmarshalling, everything looks normal. I don't know how Hibernate even knows the object has been sent over the wire. Hibernate only uses collection proxies for unitialized collections, right? Anyone had this problem? Any tips would be appreciated.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 03, 2004 8:07 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
The collection wrapper contains a snapshot of the old collection state. This is a FAQ.


Top
 Profile  
 
 Post subject: re: XML serialization and collections
PostPosted: Tue Oct 19, 2004 1:08 am 
Newbie

Joined: Mon Oct 18, 2004 9:38 am
Posts: 5
I have been having issues with SOAP serialization, where in many-to-one relation of the child object back to the parent is causing infinite looping of the serialization. Can one of you explaing.. how this problem was solved when working with Axis?

-Bhaskar


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.