jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexander Klimetschek <aklim...@day.com>
Subject Re: Re-register Custom Node Types Without Destroying Repository?
Date Tue, 15 Sep 2009 16:01:55 GMT
On Tue, Sep 15, 2009 at 15:36, Charles Brooking
<public+jackrabbit@charlie.brooking.id.au> wrote:
> Hopefully there'll be support for Rails-like migrations in the future; this is something
> I may attempt but haven't had the time yet.

One very-JCR-like trick is to always use nt:unstructured as base for
all your node types. That way you cannot put constraints on your
nodes, ie. restrict applications/users to only set one of the
pre-defined nodes, but it makes changing nodetypes much easier. Also
note that JCR 2.0 will allow for changing the primary node type of a


Alexander Klimetschek

View raw message