On 30.11.11 13:49, "VitalyL" <[email protected]> wrote: >/workspace.copy(path, destPath); >... >copy.removeMixin(JcrConstants.MIX_VERSIONABLE);/ > >With 2.2.9 it throws javax.jcr.nodetype.ConstraintViolationException: no >matching property definition found for >{http://www.jcp.org/jcr/1.0}isCheckedOut > >So, the main question: how to create a copy without any version >information?
I don't know if that is bug (i.e. I think removeMixin should probably remove it's properties such as jcr:isCheckedOut automatically, but I am not sure). As a workaround you can copy the node and properties "manually" (ie. getProperty + setProperty) and excluding the versioning properties altogether (and not setting the mix:versionable on the target node). Cheers, Alex -- Alexander Klimetschek Developer // Adobe (Day) // Berlin - Basel
