Is there a way to retrieve "extra" data through HQL ?
I can write "extra" when i map a collection,
and when i execute the HQL i will get some extra data on it.
but i want to perform an HQL which specify on some "field"
to "retrieve" the "extra data" and not on the mapping.
BTW, the association is of type many-to-many.
Below is an explanation on how it can be done with the mapping,
and i want to do the same only with HQL...
Use lazy="extra" on collections for "smart" collection behavior, i.e. some collection operations such as size(), contains(), get(), etc. do not trigger collection initialization. This is only sensible for very large collections.
taken from "A Short Primer On Fetching Strategies"
http://www.hibernate.org/315.html :
Thanks,
Eran.