jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Guggisberg <stefan.guggisb...@gmail.com>
Subject Re: node deletion question
Date Sun, 20 Nov 2005 16:12:17 GMT
On 11/20/05, Alexandru Popescu <the.mindstorm.mailinglist@gmail.com> wrote:
> Hi!
>
> I have an hypothetical question:
>
> say we have a node ParentNode that contains a ChildNode and also a property referencing
> (PropertyType.REFERENCE) the ChildNode.
>
> Is true that in the above scenario, without firstly deleting the parent property, there
is not other
> chance to delete the ParentNode?

no. you only have to delete the parent node.

assume the following:

node n1 has child node n2 and a reference property p1 refering to n2.

the following should succeed:

n1.remove();
session.save();

cheers
stefan

>
> thanks in advance
>
> ./alex
> --
> .w( the_mindstorm )p.
>
>
>

Mime
View raw message