jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexandru Popescu <the.mindstorm.mailingl...@gmail.com>
Subject Re: node deletion question
Date Sun, 20 Nov 2005 19:13:20 GMT
#: Stefan Guggisberg changed the world a bit at a time by saying on  11/20/2005 6:12 PM :#
> 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();
> 

well, I think this fails in fact. I will try to reproduce the exception with a smaller app.

./alex
--
.w( the_mindstorm )p.

> cheers
> stefan
> 
>>
>> thanks in advance
>>
>> ./alex
>> --
>> .w( the_mindstorm )p.
>>
>>
>>
> 
> 
> 
> 
> !DSPAM:4380a081328035513217911!
> 
> 


Mime
View raw message