-->
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: Deserializing problem with Sets
PostPosted: Thu Aug 18, 2005 3:08 pm 
Newbie

Joined: Wed Oct 06, 2004 4:39 pm
Posts: 17
I have a problem when a graph object is deserialized in the client.
I have two classes, A and B, with a association one-to-many bidirectional. The hashCode() in the class B use an attribute of the class A (not the key, getA().getXXX()). With the debugger i can view that when the instances of B are placed in the set of A, the attribute of B that reference to A is not completely deserialized (is null). The problem ocurr when i want remove an instance of B of the set of A, the actual hashcode of the instance is distinct of the hashcode used when the instance was added to the set. If i return 0 in the hashCode() of B, no problem. Must change the hashCode() of B and don't use properties of A?

Thanks.

Hibernate version:
2.18


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.