jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From viz06 <vijaykumarsharma_1...@yahoo.com>
Subject CND definition
Date Thu, 29 May 2008 16:37:35 GMT


I have node type nm:Doc and nm:Content defined as follows:

[nm:Doc] > nt:base, mix:referenceable
- nm:desc (string)
- (more properties)
+ *(nm:Content)

[nm:Content] > nt:base, mix:referenceable, mix:versionable
- jcr:data (binary) mandatory

I would like that whenever nm:Content is checked in, it should also record
the nm:Doc properties as part of its version history

I was thinking of using reference from nm:Content to nm:Doc as follows:

[nm:Content] > nt:base, mix:referenceable, mix:versionable
- jcr:data (binary) mandatory
- nm:doc (reference) 
< 'nm:Doc'

but I am not sure 

1) whether this will work 
2) how to get the nm:Doc from the version information of nm:Content,
provided  1) do work.

Could somebody help me with this.

Thanks 
-- 
View this message in context: http://www.nabble.com/CND-definition-tp17540427p17540427.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.


Mime
View raw message