-->
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: Q: Different Object with Same identifer in Remote-Client
PostPosted: Tue Apr 04, 2006 3:56 am 
Newbie

Joined: Tue Jan 24, 2006 12:04 pm
Posts: 12
hi, all

My application has a server and a fat client. Communication is through HTTPInvoker.

Let me say, Object A has a list of Object B, B is composed of C and D.

in one remoteCall, getAbyID---> i have got object A. in the list there is one Object B(1). At this point, Hibernate session is closed.

in another remoteCall getBbyID---> i have got object B(2), which B(2) and
B(1) has the same C. Strictly saying, B(1).C and B(2).C have same identifer, but they are different objects.

the problem arises when i call A.getList().Add(B(2)). then i try to save(A).

the typical error (Different object with same identifer in one session found) appears.

i think it should be a general problem for remote-call with hibernate. How can i deal with it?

thanx in advance.


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.