Hi, On Tue, Feb 5, 2013 at 5:34 PM, hsp <[email protected]> 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 reference. The other impact is the Node.getReferences() method, that only works with hard references. BR, Jukka Zitting
