Hi Jukka,

Thanks, you are totally right.

(for the little story, it comes from a temporary unit test.)

Nico

On 10/31/06, Jukka Zitting <[EMAIL PROTECTED]> wrote:

Hi,

On 10/31/06, Nicolas <[EMAIL PROTECTED]> wrote:
> Actually they have different names, but the same name sibling is a use
case
> I should be taking care of.
>
> Do you have an idea why with same name sibling this behaviour happens?

You've probably run code like the following a few times over:

    Session session = ...;
    Node root = session.getRootNode();
    root.addNode("A");
    root.addNode("B");
    root.addNode("C");
    session.save();

When run multiple times, this results in a repository like this:

   /
   /jcr:system
   /A[1]
   /A[2]
   /A[...]
   /B[1]
   /B[2]
   /B[...]
   /C[1]
   /C[2]
   /C[...]

BR,

Jukka Zitting




--
a+
Nico
my blog! http://www.deviant-abstraction.net !!

Reply via email to