incubator-graffito-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Koci <martin.k...@aura.cz>
Subject [jcr-mapping] Mapping Node.getPath() to domain objects
Date Mon, 10 Oct 2005 12:41:34 GMT
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:  martin.koci@aura.cz
internet: http://www.aura.cz
         http://www.j2ee.cz
--------------------------------- 


Mime
View raw message