Yes, I have set the UUID collision behaviour to IMPORT_UUID_CREATE_NEW
Because I got the same UUID, I've assumed that this rule only apply in
case of UUID collision inside the repository.
But now I read again the doc, I realize that it is supposed to be the
behavior that I want.
So I don't understand why in my case new UUID are not generated.
Regards,
John
Alexander Klimetschek a écrit :
On Tue, Jan 12, 2010 at 10:16, John Tranier <[email protected]> wrote:
I really want here a copy, i.e. the copied node must have the same
properties & subtree but a different UUID than the original ones.
I've 1st tried to do that with exportSystemView/importXML but the problem is
that the UUID remain the same and I obtain strange behavior on the copied
nodes when I remove the original nodes.
Did you try to set the UUID collision behaviour to IMPORT_UUID_CREATE_NEW ?
http://www.day.com/maven/jsr170/javadocs/jcr-1.0/javax/jcr/Session.html#importXML(java.lang.String,%20java.io.InputStream,%20int)
Regards,
Alex