version 1.2.1
.Net 3.5
Sometimes I get null objects returned when I'm doing a LEFT OUTER JOIN FETCH of an entity and it's children (or their children).
Code:
FROM parent p
LEFT OUTER JOIN FETCH p.children child
LEFT OUTER JOIN FETCH child.children
where the collections are either mapped as lists or sets. initial testing shows that NHibernate is smart enough to deduce that a null return means no children in the resultset, but I still sometimes get null objects.
Under what circumstances will the above hql return with null objects for the children? Not all of the child objects are null, but some of them are.
PS
I believe a skipped list index will also result in null being inserted for that specific index. but I was hoping for other scenario's.
thanks!