incubator-graffito-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexandru Popescu" <the.mindstorm.mailingl...@gmail.com>
Subject Re: How can aggregation be mapped in OCM?
Date Sun, 03 Sep 2006 22:33:48 GMT
On 9/3/06, Dan Connelly <dsconnelly@adelphia.net> wrote:
> How do you express aggregated, not contained, bean references in the OCM?
>
> An aggregate bean ref would (presumably) get persisted as a uuid uri,
> not as a content sub-node.    (Path references might be okay instead of
> uuids.)
>
> If I map naively with two classes that where each has the other as a
> bean element, then pm.insert(rootObj) will traverse this loop
> endlessly.   The rootObj class has proper containment of both these
> mutually referencing classes.
>

I think you should use a custom bean descriptor to take care of this
kind of mapping.

./alex
--
.w( the_mindstorm )p.

>        -- Dan
>

Mime
View raw message