On Jun 19, 2012, at 7:30 PM, Fabrizio Perin wrote:
Hi,
2012/6/19 Nicolas Anquetil <Nicolas.Anquetil(a)inria.fr>
On 19/06/12 17:10, Andrea Caracciolo wrote:
Yes.
However take care that you are implicitly restricting your relationships to be binary and
directed (from/to)
What if I want a "sibling" relationship?
Sorry Nicolas but I don't follow you. All the relations in Moose are binary: any
relation is just among two entities. If I have a one to many relation than I will have
multiple relation objects with the same sender and different receivers. Also the lift
relation it is not necessarily directed. It is the rationale that makes it directed or
not. From and to don't have to mean that the relation goes from the from part and goes
to the to part. An attribute that specify if the lift relation is directed or not could be
useful to distinguish the case.
Hi fabrizio
Multiple inheritance is managed as different relationships? I do not remember :)
It might be implemented in a way that contradict your hypotheses.
The roles might have different names than to/from and it could be interesting (or not) to
take this into account just as you have "lift: aSelector"
This could mean that instead of returning a collection of FAMIXLiftedAssociation, you
would return a LiftedResult that would contain a collection of "normal
relationships" (whatever they are).
quite impossible to return normal relations since Lift infers and returns relations that
do not exist.
but may be you do not have to wrap all your results in LifAssociations and can have mixed
results with famix and lift associations
?
The rest of your email about helper methods to return directly the models could make
sense in some cases.
Finally, you always give example of queries on moosegroups, did you exclude queries on
single MooseEntity?
A query to a moosegroup of one entity is it not the same?
Cheers,
Fabrizio
_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev