You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jackrabbit.apache.org by Thomas Kratz <th...@eiswind.de> on 2008/11/23 12:39:38 UTC

Stuck with Versioning

Hi,

 

I'm trying to get going with some simple Versioning. I ve been struggling
for six hours now and since I'm not getting along with google I hope someone
can help me.

 

I have nodes of nt:unstructured, that have nt:file childnodes with
corresponding nt:resource nodes.

 

To be honest I don't have a clue if this is a good strategy at all.Basically
I need to store files with some attributes that are subject to change.

 

Now I want the containing nt:unstructured node to be the root of a versioned
subtree. I added mix:versionable, that's fine, but the child nodes don't get
versioned. I found some information on default OPV, so I tried to add
mix:versionable to the child nodes. Don't know if this is a good idea.

 

Now I strangely already have a strange Version when I first save the
nt:unstructured (don't understand that at all). When I create a new version
of the node, it now seems to have nt:file child but that still lacks an
jcr:content property.

 

If I can get any hints on existing documentation or if my concept makes
sense at all that would be gladly appreciated.

 

Regards Thomas