Hi,
I'd like to use the LoadEventListener to do some post-processing on
the objects fetched in a query (using Hibernate3).
This works pretty well for internal queries (to fetch associated objects),
but doesn't seem to work for the "1st level" objects returned directly
by the query. The listener's onLoad(...) method seems to
be called only on internal queries initiated by Hibernate.
Of course, I can call the post-processor on those objects right after
fetching them, but I would like to be able to ensure that any object
instanciated by Hibernate does pass post-processing.
I searched the documentation but I couldn't find anything about when
exactly LoadEvents are generated.
Any ideas?
Thanks!
|