I was explaining to you the design. I thought it was the only way, but the only way in my
logic, whereas other may exist ;o) So perhaps your idea of overwriting the methods can be
good. But it has to be done.
I currently don’t know what is the behavior of ask the incoming association to an entity
that has none.
I think that it can be good that you investigate this point before doing any change. And
then consequently modify the code to correct or not this behavior. It can be here an error
in the design, I don’t know.
But perhaps also for performance reasons, it can be good, that such query can not be asked
to associations. Because here you know that in any case, it does not make sense.
If you can modify the code to have the same behavior (or better), no soucy for me. Just be
aware of all of this (what was not the case initially). I think it is all the reasons
explaining the design. But perhaps I forgot some :p
Anne
Le 10 oct. 2017 à 16:09, Cyril Ferlicot
<cyril.ferlicot(a)gmail.com> a écrit :
On Tue, Oct 10, 2017 at 4:00 PM, Anne Etien <anne.etien(a)univ-lille1.fr> wrote:
>
>
> I don’t understand the end of the last sentence.
>
I mean that if we do that, it will be easier to implement new
FAMIXEntity and/or to adapt existing models to works with Moose-Query.
Also, if all FAMIXEntity does not use the Trait, we cannot
#queryAllIncomingAssociations in Tools manipulating FAMIXEntities
without the fear that it will break because one find of entity might
not use the Trait.
> Not so sure, because as it is currently done, FAMIXComment can not answer to method
like queryAllIncomingAssociations, because it is not linked to other entities through any
association just a container relationship that is not an association. It can be the case
of other entities (I have no idea which one).
>
What is the problem if we ask the incoming association to an entity
that has none? Currently FAMIXType understand
#queryOutgoingInvocations but it will never return one since it is not
a Behavioural entity.
> Anne
>
> _______________________________________________
> Moose-dev mailing list
> Moose-dev(a)list.inf.unibe.ch
>
https://www.list.inf.unibe.ch/listinfo/moose-dev
--
Cyril Ferlicot
https://ferlicot.fr
http://www.synectique.eu
2 rue Jacques Prévert 01,
59650 Villeneuve d'ascq France
_______________________________________________
Moose-dev mailing list
Moose-dev(a)list.inf.unibe.ch
https://www.list.inf.unibe.ch/listinfo/moose-dev