jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tobias Bocanegra" <tobias.bocane...@day.com>
Subject Re: Multi-value references
Date Wed, 06 Dec 2006 08:37:04 GMT
hi aleksandar,
how do you remove the mv properties? with Property.remove() or by
setting individual values of the mv array to NULL ?

regards, toby



On 12/6/06, Aleksandar Pecanov <pecanov@mt.net.mk> wrote:
> Hi,
>
> I seem to have run into a bit of a problem ...
>
> I wrote a method for removing (braking) node's references in order to
> sucessefully remove a referenced node. What it actually does is remove
> all properties that refer to a node or if it is a multi-value property,
> it removes just the value pointing to the node.
>
> Now, my problem is with the second case (multi-value properties).
> Although values are removed (within a session), the node is still being
> referred by this properties (or so
> the getReferences() method claims). This wouldn't be much of a problem
> (I'll just ignore it), but upon saving the session containing the
> changes, a ReferentialIntegrityException is thrown thus preventing the
> full removal of the node.
>
> Has this been tested already somewhere?
>
> Thank you.
>
>


-- 
-----------------------------------------< tobias.bocanegra@day.com >---
Tobias Bocanegra, Day Management AG, Barfuesserplatz 6, CH - 4001 Basel
T +41 61 226 98 98, F +41 61 226 98 97
-----------------------------------------------< http://www.day.com >---

Mime
View raw message