On 2009-11-17 23.07, Jacek Sokulski wrote:
In cases where I want to have the state private per role, e.g. Person can have two roles HasName and HasSpouseName and implementation for both use NameState.
But for the marriage-side you wouldn't do that as a single role. The entity itself would be Marriable, and then if you want to model multi-marriage situations, then keep two MarriedToValues.
And is it possible for a person to have two names? Well, if it is, then do the same as above. If your domain is complex, don't try to simplify it down. But Qi4j can handle it, with the above concept.
/Rickard _______________________________________________ qi4j-dev mailing list [email protected] http://lists.ops4j.org/mailman/listinfo/qi4j-dev

