Niclas Hedhman wrote: > On Mon, Sep 8, 2008 at 11:34 AM, Rickard Öberg <[EMAIL PROTECTED]> wrote: >> Niclas Hedhman wrote: >>> No, I meant; "CEO" is a Position, "Senior Welding Instructor" is a >>> Position and so on. Those are typically managed entities within the >>> Company, i.e. not "owned" by the AssociationRole but must be >>> referenced by the AssociationRole.... I just realized one thing... Is >>> the role Entity owned by the AssociationRole or the Entity where the >>> AssociationRole is used? I have assumed the AssociationRole, but >>> perhaps that is incorrect. >> Well, the AssociationRole object is supersimple (only a POJO with two >> references), so I don't think it can "own" anything, so to speak. Are >> you talking from a garbage collecton point of view, i.e. who is >> responsible for deleting them? > > No, you mentioned that the "Position" entity would get deleted... My > question is now; Who owns the "Position" entity then?
It should be the Entity that has the Association, i.e. Employer in this cases. That's the only place where we can add deletion logic, i.e. in a concern for Lifecycle.remove(). /Rickard _______________________________________________ qi4j-dev mailing list [email protected] http://lists.ops4j.org/mailman/listinfo/qi4j-dev

