jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jukka Zitting <jukka.zitt...@gmail.com>
Subject Re: Convert field type
Date Wed, 06 Feb 2013 11:50:14 GMT

On Tue, Feb 5, 2013 at 5:34 PM, hsp <piccinatto@ibest.com.br> wrote:
> Is it possible in jackrabbit 2.x to convert property type from reference to
> weakreference?

Depends on whether you've declared it in a node type. If you have
something like an nt:unstructured node with a reference property
pointing somewhere, you can simply overwrite that property with a weak
reference to the same target. But if you have a custom node type that
mandates a property to be a hard reference, then changing that will be
somewhat difficult.

> What are the possible consequences?

The obvious one is the potential loss of referential integrity. The
target of a weak reference can be removed, leaving behind a dangling

The other impact is the Node.getReferences() method, that only works
with hard references.


Jukka Zitting

View raw message