-->
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: Interceptor onSave not working, onSave + onFlushDirty works
PostPosted: Thu Mar 06, 2008 7:46 am 
Newbie

Joined: Mon Sep 03, 2007 9:10 am
Posts: 7
I have an Hibernate Interceptor setting audit info on pojos, two atributes for save and other two for updates.

It looks working fine, but when an object only passes by onSave method, the save audit columns are not being inserted. If the object passes by onSave and onFlushDirty, both save and update audit columns are being inserted.

My interceptor extends EmptyInterceptor and if I debug it, the code setting the audit info in onSave it's executed. Then, when querying the database, it's not there.

I've been looking in forums and Hibernate docs, but I can't find anything related to this problem.

Any help would be appreciated.

Thanks in advance,
Dafne.


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.