When inserting new object into repository on existing path new node with
[] index is created:
Assume node /Document And Sesstings/file.txt exists:
pm.insert("/Document And Sesstings/file.txt", entity) creates new node
with path /Document And Sesstings/file.txt[1] - that is correct.
But I want set newly inserted path on inserted entity:
entity.getPath() should return /Document And Sesstings/file.txt[1]
Is it possible? Is path to node saved in special property ?
<class-descriptor className="cz.aura.admis.domain.Document"
jcrNodeType="admis:document" >
<field-descriptor fieldName="path"
jcrName="PATH_PROPERTY_NAME"></field-descriptor> ???
<field-descriptor fieldName="creationDate"
jcrName="jcr:created"></field-descriptor>
<bean-descriptor fieldName="documentStream" proxy="false"
jcrName="jcr:content"></bean-descriptor>
</class-descriptor>
Thanks,
Martin
--
Mgr. Martin Kočí
---------------------------------
AURA, s.r.o.
Úvoz 499/56; 602 00 Brno
ISO 9001 certifikovaná společnost
tel./fax: +420 5 43 24 51 11
e-mail: [EMAIL PROTECTED]
internet: http://www.aura.cz
http://www.j2ee.cz
---------------------------------