jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christophe Lombart <christophe.lomb...@gmail.com>
Subject Re: OCM
Date Mon, 26 Oct 2009 12:22:00 GMT
It is supported but only by UUID.
By path is also a good idea. It should be possible to add a new  OCM
Collection converter for supporting reference by path .

Christophe


2009/10/23 Ben Short <ben@benshort.co.uk>:
> Hi,
>
> JCROM supports weak references as show in the following classes
>
> public class Person {
>
>        @JcrPath
>        private String path;
>        @JcrName
>        private String name;
>
>        @JcrReference(byPath = true)
>        private List<Pet> pets= new ArrayList<Pet>();
>
> }
>
> public class Pet {
>
>        @JcrPath
>        private String path;
>        @JcrName
>        private String name;
>
> }
>
> This will result in a property on person node which contains a list of
> paths to the pet nodes.
>
> Does jackrabbit-ocm support this?
>
> Regards
>
> Ben Short
>

Mime
View raw message