-->
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: Criteria query doesn't fire events
PostPosted: Tue Sep 26, 2006 4:57 am 
Newbie

Joined: Tue Sep 26, 2006 4:33 am
Posts: 1
Hi,

we're currently considering moving our web-application's persistence layer on Hibernate. However, I did notice one bug(?) in the implementation of Criteria queries. Now I know this feature is currently experimental, but it would provide massive functionality benefits for the end users so I would gladly see it working.

The problem is that the Criteria.list() doesn't seem to call the event handlers assigned to my classes. initializeNonLazyCollections() does however do this, meaning that my parent class will not fire event handlers, but all its children do. I would like to implement permission handling through the event system and the criteria api is the only current flaw in this. Saving and updating naturally fires these handlers so no information can be changed without permission, but I would like to keep the "you're on a need-to-know basis and you don't need to know" system intact. ;)

So, any comments, fixes or workarounds for this? I would prefer to have this done inside Hibernate to keep my web tier as clean and as secure as possible.

Thanks!


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.