hi,
again i am facing the same problem.
i have created a new docType and schema using nuxeo
connect,
the schema contains a field "uid2", and i am trying to
assign a value to this uid2 field using a custom generator
which as of now .i am using UIDgenerator1 thats comes with
nuxeo,
i am placed the file named as nuxid-contrib.xml in
server/conf folder and file contains
<?xml version="1.0"?>
<component
name="org.nuxeo.ecm.platform.uidgen.testGenerators">
<extension
target="org.nuxeo.ecm.core.persistence.PersistenceComponent
"
point="hibernate">
<hibernateConfiguration name="NXUIDSequencer">
<properties>
<property
name="hibernate.connection.url">jdbc:hsqldb:mem:.;sql.enforce_strict_size=true
</property>;
<property
name="hibernate.connection.driver_class">org.hsqldb.jdbcDriver
</property>
<property
name="hibernate.connection.auto_commit">true</property>
<property
name="hibernate.connection.pool_size">1</property>;
<property
name="hibernate.dialect">org.hibernate.dialect.HSQLDialect
</property>;
<property
name="hibernate.hbm2ddl.auto">update</property>;
<property
name="hibernate.show_sql">false</property>; // true to
debug
<property
name="hibernate.format_sql">true</property>;
</properties>
</hibernateConfiguration>
</extension>
<extension target="org.nuxeo.ecm.core.schema.TypeService"
point="schema">
<schema name="unique" src="schema/newschema.xsd" />
</extension>
<!-- Sample generators -->
<extension
target="org.nuxeo.ecm.platform.uidgen.service.UIDGeneratorService
"
point="generators">
<generator name="geideDoc"
class="org.nuxeo.ecm.platform.uidgen.generators.UIDGenerator1
">
<propertyName>newdoctype:uid3</propertyName>
<propertyName>unique:uid2</propertyName>
<docType>newdoctype</docType>
<docType>File</docType>
</generator>
<generator name="coreDocs"
class="org.nuxeo.ecm.platform.uidgen.generators.UIDGCoreDocument
">
<propertyName>uid:uid</propertyName>
<docType>Folder</docType>
<docType>Note</docType>
</generator>
</extension>
</component>
after uploading file in this docType the uid2 field in
metadata remained empty .
please tell me where i am wrong in implementation?
---
Mailing list: [email protected]
Forum: http://forum.nuxeo.org/f/1/