Niclas Hedhman wrote: > Uhhh.... To clear this; > > Association<Person> spouse(); > vs > > Association<AssociationRole<Person, Marriage>> spouse();
This is the one. The Association is set to a "package deal". If AssociationRole is a subtype of Association it would otherwise be potentially possible to set role but not association, which would be confusing. It also doesn't work well for manyassociations to do it the other way. > Ok, so for the Employer example, the Position is a aggregate of the > Association between the Employer and Employee, and if the Position is > an actual company entity, with salary, rights, responsibilities and so > on, that must be one indirection further away?? Incredibly important > to understand. Not 100% sure what you mean with "is a aggregate of the Association between the Employer and Employee". Also "Position" cannot be a "company entity" (it's just a Position, which is immaterial), if you are saying "Position can be a Company". Too confusing terminology right now to make sense. /Rickard _______________________________________________ qi4j-dev mailing list [email protected] http://lists.ops4j.org/mailman/listinfo/qi4j-dev

