Yep - My model is _full_ of many to manys and I had to discover this
dark little corner of NH by myself. It seems strangely undocumented. I
remember I couldn't even find a description of what elements did in
the docs back then. (May have changed - 18 months is a long time).
j.
Thats exactly what I ment - I can't find any docs at all for max_index
and the although elements() is demonstrated here - it's hardly
explained..
http://www.hibernate.org/hib_docs/nhibernate/1.2/reference/en/html/queryhql.html#queryhql-select
If I felt I understood it well enough - I'd submit a documentation patch.
j.
select mother from Eg.Cat as mother, Eg.Cat as kitTim.
where kit in elements(mother.Kittens)