-->
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.  [ 4 posts ] 
Author Message
 Post subject: Hibernate event listeners don't listen to executeUpdate sql?
PostPosted: Mon Aug 01, 2011 9:43 pm 
Newbie

Joined: Tue Dec 22, 2009 11:52 pm
Posts: 10
I've written event listeners which listen to update/delete/insert operations.

But when it comes to writing HQL and firing it, the hibernate listeners are not invoked.

I need to do auditing for hibernate named queries.

Is there any hibernate specific solution to this problem of auditing?

Thanks


Top
 Profile  
 
 Post subject: Re: Hibernate event listeners don't listen to executeUpdate sql?
PostPosted: Tue Aug 02, 2011 10:01 am 
Newbie

Joined: Tue Aug 02, 2011 7:10 am
Posts: 1
I have a similar problem. There is already a jira issue relating to this:
https://hibernate.onjira.com/browse/HHH-1639


Top
 Profile  
 
 Post subject: Re: Hibernate event listeners don't listen to executeUpdate sql?
PostPosted: Tue Aug 02, 2011 10:09 am 
Newbie

Joined: Tue Dec 22, 2009 11:52 pm
Posts: 10
Well hibernate jira is different, it is talking capturing query operations. In my case i want to run update sql using HQL.


Top
 Profile  
 
 Post subject: Re: Hibernate event listeners don't listen to executeUpdate sql?
PostPosted: Mon Sep 05, 2011 3:59 am 
Newbie

Joined: Sat Oct 17, 2009 7:34 am
Posts: 9
Hi Guys,

I have the same problem. if doinging any insert/updates and deletes via hql, named queries then PreInsertEventListener, PreUpdateEventListener,PreDeleteEventListener do not work. How did ye get around this in the end?

Also will Hibernate accomadate this issue in the future?

Alan


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 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.