I have just wondered the same question, and I found out that there is two 
unique "doc-ids":
<ol><li>        hierarchy.parentId + hierarchy.name</li>
<li>uid.uid</li>
</ol>

I think that database-wise that these two unique-keys should be extracted from 
the hierarchy-table and inserted into a new table documents, or oposite.

PS: In order to use the uid as document-key, you need to activate the 
uid-generator as following:

&lt;extension 
target="org.nuxeo.ecm.platform.uidgen.service.UIDGeneratorService" 
point="generators"&gt;
&lt;generator name="tvdocs" 
class="org.nuxeo.ecm.platform.uidgen.generators.UIDGCoreDocument"&gt;
&lt;propertyName&gt;uid:uid&lt;/propertyName&gt;
&lt;docType&gt;DocType1&lt;/docType&gt;
&lt;docType&gt;KjetilDoc&lt;docType&gt;
&lt;/generator&gt;
&lt;/extension&gt;



I implemented my own UIDGCoreDocument generator, but that is up to you :-)

Edited by: kjetilny on 24.aug.2010 22:05
--
Posted by "kjetilny" at Nuxeo Discussions <http://nuxeo.org/discussions>
View the complete thread: 
<http://www.nuxeo.org/discussions/thread.jspa?threadID=4023#12362>
_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm
To unsubscribe, go to http://lists.nuxeo.com/mailman/options/ecm

Reply via email to