Niclas Hedhman wrote:
> On Thu, Sep 4, 2008 at 6:53 AM, Rickard Öberg <[EMAIL PROTECTED]> wrote:
>> interface Movie
>> {
>> ManyAssociation<AssociationRole<Actor,ActorRole>> actors();
>> }
>
> Sorry, I don't get it...
>
> I assume AssociationRole is a custom type, which is a class of no
> particular type in your sample. That means it could be;
>
> ManyAssociation<HashMap<Actor,ActorRole>> actors();
>
> And what is the semantic meaning and enforcement rules here??
AssociationRole is a built-in type in Qi4j. (Many)Associations
explicitly verify that objects added are either EntityComposites or
AssociationRoles. So, for example, HashMap as you used in the example
would not work.
/Rickard
_______________________________________________
qi4j-dev mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/qi4j-dev