-->
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: Audit Interceptor problem
PostPosted: Mon Mar 23, 2009 1:49 am 
Newbie

Joined: Mon Mar 23, 2009 1:31 am
Posts: 1
Hi iam using Audit Interceptor in my hibernate..

I created Audit Interceptor class and created methods like onSave() and OnFlushDirty() .

Iam lodaing it in this way..

configuration.setInterceptor(new AuditInterceptor());

and loading even while getting the session..

like session = sessionFacotory.openSession(new AuditInterceptor()));


Hibernate Util is being loaded correctly but my methods are not being called i.e the database coloums are not getting updated with the custom messages i set in the Interceptor methods like onSave() and onFlushDirty() etc when iam updating any object in the database...

is there any problem while loading or i need to have any other methods(other than onSave and onFlushDirty())
in Interceptor. My requirement is specific columns need to get updated when iam updating an object...

can you guys pls direct me in this regard

Thanks in Advance
surya


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.