This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
execute JPA query to get all accounts , i notice that all parentAccount object is reference to the same object for all accounts that have same parent account i.e ( i have 3 accounts and all of them have the same parent account object , in the memory the 3 accounts reference the same parent account object in the memory )
the problem is if in my screen once i changed the parent account of one of the 3 account the other parent account changed for the other accounts (because they are reference to the same object in the memory ), how can i solve the problem.
i notice that all parentAccount object is reference to the same object for all accounts that have same parent account
That would be the expected behaviour, why would you expect something different?
Joined: Oct 11, 2011
I know but my screen submit all records so when I changed one of them the others ( which have the same parent account reference object ) changed , the expected behavior should changed just the changed record not all