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.
|