Sachin, This seems like a code smell to me, if the two entity types, now is one, have a different meaning, try modelling them accordingly.
In nhibernate an object of a given type, is only once per primary key in de session (identitymap). Kind regards PS: If you think i didn't understand the question, elaborate on the situation more please. On Jul 22, 12:23 pm, Sachin <[email protected]> wrote: > Hi > I am facing a problem, while using objects received from database. > I have 2 collections of an entity, which have objects fetched from > database which can be same as in they might have same primary key but > can have different values in few columns. > I found that when I update object in collection A, object with same > primary key in entity B also gets updated although it have been > fetched separately. > > Due to which my business logic get scrambled. > Please suggest whether I shall specify some attributes on entity or > some different approach have to be followed. > > Thanks > Sachin --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "nhusers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nhusers?hl=en -~----------~----~----~----~------~----~------~--~---
