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.  [ 1 post ] 
Author Message
 Post subject: HQL and LoadEventListener
PostPosted: Thu Jun 30, 2011 12:46 pm 
Newbie

Joined: Thu Jun 30, 2011 11:48 am
Posts: 1
We need to perform some logic whenever a certain entity, Foo, gets loaded. Foo has a property Bar. We've created a LoadEventListener and have configured it with the config below. The listener's onLoad function is not being called whenever a Foo is loaded via a HQL query. The listener's onLoad event is being called whenever a Bar is loaded to hydrate the Foo, so the listener is registered properly.
Should the LoadEventListener be triggered when an entity is loaded via an HQL query? The PostLoadEventListener is triggered, so I assume a LoadEventListener should as well? We're using hibernate-core 3.3.1.GA if it matters.

Code:
      <event type="load">
         <listener class="com.backstopsolutions.security.PermissionedResourceLoadEventListener"/>
      </event>


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

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.