Details
-
Improvement
-
Resolution: Duplicate
-
Critical
-
None
-
1.0 B6
-
None
-
ID, versioning, trash, data integrity,
-
Description
Documents, Objects, Attachments should be identified by the ID.
1. ID must be generated using Hibernate. ID is a primary key of the Document, Object, etc.
2. For versioning and trash implementation also needs GUID - the global ID. The common ID of the documents within a single version branch. Initially, it is equals ID and should not change in future.
The target of this - is the data integrity and efficiency.
The attendant features are:
- fast copy/rename/delete
- better implementation of versioning and trash
- eliminating a lot of the problems, ex.
http://jira.xwiki.org/jira/browse/XWIKI-543
http://jira.xwiki.org/jira/browse/XWIKI-842
The example of implementation is here - http://jira.xwiki.org/jira/browse/XWIKI-543