-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Question about LoadEvent and LoadEventListener
PostPosted: Tue Dec 21, 2004 4:50 pm 
Newbie

Joined: Tue Dec 21, 2004 7:30 am
Posts: 1
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!


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 27, 2006 11:28 am 
Newbie

Joined: Wed Nov 09, 2005 6:13 pm
Posts: 7
Can anyone help with this issue? Queried objects should call load shouldn't they? Otherwise security etc. that is applied to loaded objects via Listeners isn't called.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.