Re: [Modeling-users] dirty deeds done dirt cheap
Status: Abandoned
Brought to you by:
sbigaret
From: Marcos D. <md...@vi...> - 2004-03-24 22:37:10
|
User-Agent: Mutt/1.3.28i On Wed, Mar 24, 2004 at 05:19:41PM -0300, Marcos Dione wrote: > flipping the docs I see that EditingContext is capable of tell > wether it's dirty or not. but I think it would be better if I could ask > the Entity if it's dirty or not; and, being dirty, ask it to ignore any > changes not saved (which I think will resort to reload from the db)... I note two things: first, asking an Entity if it's dirty or not is impossible w/o an EC, so is unreasonable to ask for it. second, the answer seems to be to use nested EC's, but if I do it that way, for reseting I would need to discard the dirty EC, take a new one and repopulate it with the original values (most probably this two EC's will be child of one master EC at different times). what's not clear for me is how to repopulate the second EC. |