On Mon, Sep 8, 2008 at 10:05 AM, Rickard Öberg <[EMAIL PROTECTED]> wrote: > Niclas Hedhman wrote: >> I probably don't get the concept of AssociationRole (yet?)... Looking >> at your JIRA post;
Ok the fog (perhaps that is from the Romanian weekend trip) is clearing a bit. Someone got to document this, so I need to understand this well... 1. Entities can reference another Entity via an Association or an AssociationRole. 2. An Association is a direct reference to another Entity, which does not infer ownership/aggregation. 3. An AssociationRole is one "primary" reference to another Entity (as in Association), and an additional "secondary" reference to another Entity, which in turn describes the primary reference. No semantics are imposed on the secondary Entity. Both primary and secondary entities are without inference of ownership/aggregation. 4. An AssociationRole is identified (equals/hashCode) by the combo of the two Entities, i.e. IF and ONLY if both Entities have the same Identity, the AssociationRoles are equal. Cheers Niclas _______________________________________________ qi4j-dev mailing list [email protected] http://lists.ops4j.org/mailman/listinfo/qi4j-dev

