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 <[email protected]>:
> 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
>
  • OCM Ben Short
    • Re: OCM Christophe Lombart
    • OCM Ben Short

Reply via email to