when a node is versioned, what happens to child nodes? Are they versioned
to?
If you want to modify a child node, would you checkout the parent or the
child?
So nt:file node has a child node nt:resource. The content of the file is
stored as a property of that resource. To version the file, do you checkout
the nt:file or the nt:resource?
On Thu, Jul 24, 2008 at 11:10 AM, Michael Harris <[EMAIL PROTECTED]>
wrote:
> hey all,
>
> so i can create file
>
> Node fileNode = parentFolder.addNode(file.getName(), "nt:file");
>
> // make the file versionable and lockable
> fileNode.addMixin("mix:versionable");
>
> // create the mandatory child node - jcr:content
> Node resNode = fileNode.addNode("jcr:content", "nt:resource");
>
> I added the middle line to make the file versionable. but when I try to
> getVersionHistory on the file I get an exception
>
>
> javax.jcr.UnsupportedRepositoryOperationException: Unable to perform
> versioning operation on non versionable node: /files/testVersionFile
> at
> org.apache.jackrabbit.core.NodeImpl.checkVersionable(NodeImpl.java:3215)
>
>
> any ideas? Can I add the mix:versionable type to nt:file? If not, how
> does one version a file?
>
> --
> ---------------------
> Michael Harris
>
--
---------------------
Michael Harris