-->
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: URGENT: How to implement trigger like func? last_update_date
PostPosted: Tue Feb 13, 2007 5:48 pm 
Newbie

Joined: Tue Feb 13, 2007 5:38 pm
Posts: 1
Hi,

We need to add a column as LAST_UPDATE_DATE to all tables of an existing application. [developed using hibernate.]
When Hibernate update any data it should also update the LAST_UPDATE_DATE=SYSDATE [ i.e. Database system date and not app server sysdate] So we cant use interceptor considering the extra call.

is there any way to do it....

We can do it by using <sql-update> in hbm file, but all hbm files need to be modified ..

Appreciate your suggestions.


Thanks,
Jitendra


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.