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: Creating NodeType with dynamic, linked properties
Date Thu, 16 Nov 2006 10:31:08 GMT

On 11/16/06, Stefan Guggisberg <stefan.guggisberg@gmail.com> wrote:
> you could e.g. create a node type myapp:Category that extends from
> mix:referenceable. now for each category (e.g. book, dvd, etc) you can
> create a node of type myapp:Category.
> in your custom node types make your "category" property a REFERENCE
> property and restrict it to myapp:Category.
> you can add new categories (nodes of type myapp:Category) at any time.

This is one of my favourite JCR patterns. Not only it gives you nice
and controlled extensibility, it allows you to easily attach whatever
information to the category nodes *and* gives you a blazing-fast
mechanism to list all nodes that link to a given category.


Jukka Zitting

View raw message