This content has been marked as final. Show 2 replies
I don't know what you mean exactly by 'recognize the same objects', but if you're going to use List.contains(), it relies on the behaviour of the equals() method. So you can build in any behaviour you like, using any member data you like, via the equals() method.
By recognizing if the objects are the same I mean recognizing which object on the server side is the object that came back from the client (I've send the object earlier to the client).
Anyway, the idea you suggest seems to be my solution, I can set the ID's as fields in the object and than overload equals() method to compare ID's and everything should work fine with a minimum amount of changes. Thanks!