-->
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: Event Listeners and Data Partitioning
PostPosted: Sun Nov 22, 2009 7:07 am 
Newbie

Joined: Wed Dec 17, 2008 4:15 pm
Posts: 4
Hi All,

I'm 'partitioning' my existing data so that some objects are bound by a 'department'.

I've used a PreInsertEventListener and PreUpdateEventListener to intercept writes and add the current 'department' to DepartmentBound objects. I also want to intercept reads so that the 'department' is bound to the Criteria for DepartmentBound objects.

It seems that the PreLoadEventListener and other load event listeners are called after the query. Is there a listener or other method I can use to intercept queries? At the moment I faffing around using query filters but its quite intrusive in the existing code and difficult to establish if the object is DepartmentBound.

Thanks for any help.

Chris


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.