On Tue, Sep 9, 2008 at 7:30 AM, Rickard Öberg <[EMAIL PROTECTED]> wrote:
> That concludes the quick test I did of this. Is this something along the
> lines of what we want? Any pros/cons to it, and can it be improved further?
Reflection; I am sure the devil is in the details, and I am not fit to
compile all that in my head right now, but if "Role" is a bean with
references to two entities, and that this will be searchable, why on
earth isn't it just that the Company references an Entity (the Role)
which references the "primary Entity" in turn? (Pretty much how we
have always done it).
interface Company extends Entity
{
ManyAssociation<Employee> employees();
}
interface Employee extends Entity
{
Association<Person> person();
Property<String> position();
}
interface Person extends Entity
{
:
}
Right now, I don't see the advantage that clearly...
Cheers
Niclas
_______________________________________________
qi4j-dev mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/qi4j-dev