Le 10 oct. 2017 à 15:36, Cyril Ferlicot
<cyril.ferlicot(a)gmail.com> a écrit :
Currently Moose-Query works with Traits.
There is :
- TDependencyQueries containing all the query system and the common
queries such as #queryIncomingAccesses
- TOODependencyQueries using TDependencyQueries and adding the method
specific to OO entities (mostly inheritance queries)
The users of TDependencyQueries are:
The users of TOODependencyQueries are:
I think it would make sense to move TDependencyQueries to FAMIXEntity.
No, it does not make sense.
By putting TOODependencyQueries to FAMIXNamedEntity and not FAMIXEntity, the idea was to
query only non association entity. It was the only way to do it.
If you look at the users of TDependencyQueries, it is all the non association entity that
have no name.
If you do the change you suggest, you will be able to ask queryAllIncomingAssociations on
a FAMIXInvocation, what makes no sense.
So the only way to do it is to say that the entity should not inherits from
FAMIXEntity has all the API needed to the queries and it would help
with the consistancy. For example I think that all famix entities
should be able to answer to "queryAllIncomingAssociations". It would
felp making more generic tools.
What do you think? Does that bother someone?
2 rue Jacques Prévert 01,
59650 Villeneuve d'ascq France
Moose-dev mailing list