-->
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.  [ 1 post ] 
Author Message
 Post subject: Hibernate in 3-tier app
PostPosted: Fri Dec 01, 2006 5:28 pm 
Newbie

Joined: Thu Dec 15, 2005 8:31 am
Posts: 10
I am serializing objects via XML between JBoss server and .NET client.
Everything works just fine except for deletes from child collections.

The child objects are removed from collections on client side and are not members of the collection when the parent is serialized back to the server. I de-serialize the object and use saveOrUpate to save the changes to the database. I use cascade=all-delete-orphan on each child collection.

Inserts and updates of child objects work fine. Deletes to not work at all. I suspect that the problem is that when I de-serialize the objects I am using a simple HashSet for the child collections.

What are the rules for de-serializing an object and getting it reassocaited with the current Session? Specifically what Set implementation should I use for child collections to get the deletes to work properly.


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

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.