-->
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.  [ 3 posts ] 
Author Message
 Post subject: hibernate audit logging on create query
PostPosted: Wed Mar 25, 2009 10:45 pm 
Beginner
Beginner

Joined: Wed Feb 15, 2006 2:51 pm
Posts: 20
Hey,

I am doing some audit logging in Hibernate Interceptor. This works great when i update/save/delete objects!!

One thing i am having trouble is logging any thing that use HQL or SQL

such as

Code:
Stirng hql = "update SystemUser set user = :user";
Query query = getSessionFactory().getCurrentSession().createQuery(hql);
query.setString("user", user);
query.executeUpdate();


Since this does not go through the Hibernate interceptor i can't log this,
is there a way for me to catch it log it somewhere else??

Thank you
[/code]


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 26, 2009 3:25 pm 
Beginner
Beginner

Joined: Wed Feb 15, 2006 2:51 pm
Posts: 20
bump


Top
 Profile  
 
 Post subject: Re: hibernate audit logging on create query
PostPosted: Mon Aug 01, 2011 9:33 pm 
Newbie

Joined: Tue Dec 22, 2009 11:52 pm
Posts: 10
any solution as of today?


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