Sorry for butting in here, but I'm curious. With Hibernate 3.1 beta 2 I'm trying to do something like this:
Code:
<query name="DashConfigQry">
<![CDATA[
from DashConfig As C
left join fetch C.selectBoxItems as ITEMS
left join fetch C.dashTabData as DATA with DATA.clientId = :CLIENT_ID
left join fetch C.dashNotes as NOTES with NOTES.clientId = :CLIENT_ID
order by C.viewId, C.displayOrder, ITEMS.item
]]>
</query>
And what I get in the logs is this:
Code:
Caused by: with-clause not allowed on fetched associations; use filters
Is there no way to prefetch data using the with clause without having to use filters?