Hi
I'm running a HQL query and using an AliasToBeanResultTransformer to create bean instances. Child collections are not initialized by that transformer, I believe this is "as designed".
If, however, I do need initialized collections, what should I do?
Reloading (session.refresh()) each object seems stupid, as I've just accessed all required data using the query, so running a SELECT for each object in the result list shouldn't be necessary.
Can I make Hibernate turn my empty HashSet into a PersistentSet, or can should I subclass the AliasToBeanResultTransformer (if so, how?). After RTFM and googling for too long, I still haven't found any hints.
Any help appreciated!
Thanks
Simon Niederberger
Switzerland
|