views:

24

answers:

0

Hi all,

I have following problem and I am not sure how to go about it:

We have a given "marked" state of the domain objects (which is made persitent in a database). Driving away from this "marked" state the user is allows to make several changes to the domain object but if he wants to he is allowed to revert back to the last "marked" state. The marked state could also be seen as a version but what I try to avoid is to duplicate the complete data only the changed entities should be duplicated.

Now I am facing the problem to find an easy solution to keep the changes persistent as well together with allowing the user to revert back.

We are using the repository pattern for abstraction and basically changes could be remove entities, update entities and add entities.

Maybe any of you guys have come across a similar problem and there is a well known solution for this kind of problem

Christoph