design-patternsversion-controlevent-sourcingmemento

What are some design patterns for doing version control of an object?


What are some design patterns for keeping a history of an object as it changes. I don't need anything as heavy duty as event sourcing, just the ability to save past versions when a specific event happens (in this case when a print form button is pressed).


Solution

  • You could look for the memento pattern