jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexander Klimetschek <aklim...@day.com>
Subject Re: Adding property
Date Wed, 23 Sep 2009 10:15:27 GMT
On Wed, Sep 23, 2009 at 10:31, mitziuro <mitziuro@gmail.com> wrote:
> Is there a way to add node properties for a working repository (a script or
> a java code example) without deleting the repository and creating it again ?

I guess you mean changing node types? There are basically three options:

a) always use nt:unstructured (or make your nodetypes inherit from it)
b) re-register the nodetypes (even simpler with JCR 2.0, as it defines
a node type registration API)
c) with JCR 2.0, you will be able to change the primary node type of a node


Alexander Klimetschek

View raw message