how to generate/store document id for every document added
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2007 04:06 PM
I would like a unique document id to be generated and displayed for every document added. The id for a particular document must not change on backup/restore (and must be consistent across standby servers). Ideally, each version of a document would have a unique id.
Is there any (newbie level) documentation that will help me do this?
Thanks in advance …
Is there any (newbie level) documentation that will help me do this?
Thanks in advance …
Labels:
- Labels:
-
Archive
1 REPLY 1

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2007 04:13 AM
Each and every object has a GUID which is obviously unique. If you preserve ids during export/import then these will remain consistent.
The property is called "sys:node-uuid".
There is also an id that is allocated by the database called "sys:node-dbid", however, i'm not sure this will be preserved across backups (export/import).
The property is called "sys:node-uuid".
There is also an id that is allocated by the database called "sys:node-dbid", however, i'm not sure this will be preserved across backups (export/import).
