gavin wrote:
I do not understand what is being asked for here? How
is this related to fetch profiles? sounds more like batch fetching to
me, which is already implemented in 2.1.
Well, i know 2.1b4, and what i request is not in there.
From my current understanding, the only deep eager loading strategy is the left join with the FETCH keyword, as it was pointed out by gavin in
http://forum.hibernate.org/viewtopic.php?t=634
What i want is something different:
o the initial query finds all entities of the first entity class/table (Customer in the example)
o the next query will use all ids of Customer and query the next entity class/table (Invoice in the example) by the Invoice's foreign key customer_id
o the next query will use all ids of Invoices and query the next entity class/table (InvoiceItem in the example) by the InvoiceItem's foreign key invoice_id
o at the end, all objects are connected
The current left join loading generates one SQL statement (which is good), but i want to say
o this keys/objects are the starting point of my object graph,
o find the rest of the graph (not all 1:n collections, but only the one i need for that query) and
o load the objects with one SQL query per table
I was in a project that used (and needed) that strategy in a high performance ticket system (the links are only in german, sorry):
http://www.sdm.de/download/publikatione ... masuch.pdf
http://www.sdm.de/de/unternehmen/refere ... .php?ID=56