Niclas Hedhman wrote:
> On Tue, Sep 9, 2008 at 11:51 AM, Niklas Uhrberg
> <[EMAIL PROTECTED]> wrote:
>
>   
>> But lets not forget that I want to have the possibility to qualify the
>> associations not only with values like dates but also with entities,
>> this is a very common need.
>> Don't know if this is at odds with using values, but they typically
>> don't contain references to entities....
>>     
>
> Nothing technical stops a Value from having a reference to an Entity.
> Since we know what is what, the Entity reference is replaced during
> serialization with the QualifiedIdentity and vice versa. The important
> bit of the ValueComposite is that it never changes its value, and then
> one could argue whether we should "allow" ValueComposites to reference
> entities, since the Entity IS mutable, and the behavior of the
> ValueComposite may use the Entity, hence not a true Value.
>
>
>   
>> Having the qualifying entities attached to the association makes this
>> very pedagogical (as opposed to just being traversed in a chain to the
>> associated entity)
>>     
>
> Actually, that statement gave me another revelation;
>
> Entities themselves can be annotated with meta data (not sure if the
> support for it is in place yet), but how come we are not considering
> the same mechanism for the Association?
>   

    And this metadata is per instance and not per type?

    (This round of the discussion started by me asking Rickard about the 
possibility of using the metadata on associations, but as this is per 
type and not per instance it called for more support.)
   
    I'm still pretty ignorant about all mechanisms in Qi4J...

    /Niklas


>
> Cheers
> Niclas
>
> _______________________________________________
> qi4j-dev mailing list
> [email protected]
> http://lists.ops4j.org/mailman/listinfo/qi4j-dev
>
>   


_______________________________________________
qi4j-dev mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/qi4j-dev

Reply via email to