On Sun, Oct 31, 2010 at 10:09 AM, Rickard Öberg <[email protected]> wrote:

> Is there any particular reason you're not doing the obvious and put a
> back-pointer Association on the N-side?

Three reasons;
 1. In one case, the model becomes ugly since the referenced entity
doesn't need to know the referer, and I have always had the belief
that Qi4j's primary purpose is so we can stay close to the desired
model and not need to leak these kind of details.

 2. Another case; It is actually many-to-many already. So although the
"right-side" (downstream) has magnitude less references back, the
additional complexity becomes significant.

 3. A single hash lookup on a known field can be incredibly much
faster than the generic Indexing/Query engines. Almost all query needs
I have at this stage goes away with this feature.


Cheers
-- 
Niclas Hedhman, Software Developer
http://www.qi4j.org - New Energy for Java

I  live here; http://tinyurl.com/2qq9er
I  work here; http://tinyurl.com/2ymelc
I relax here; http://tinyurl.com/2cgsug

_______________________________________________
qi4j-dev mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/qi4j-dev

Reply via email to