I want to do a simple versioning system but i don\'t have ideas on how to structure my datas, and my code.
Here is a short example:
I recently built a simple versioning system for some static data entities. The requirement was to have an 'Active' version and 0 or 1 'pending' versions.
In the end, my versioned entity had the following attributes relevant to versioning.
VersionNumber (int/long) ActiveVersionFlag (boolean)
Where:-
The kind of operations I allowed were
Clone current version.
Activate Pending Version
Delete Pending Version
This was reasonably successfull and my users now clone and activate all the time :)
Michael