-->
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: simulating triggers using hibernate
PostPosted: Fri Jan 04, 2008 10:55 pm 
Newbie

Joined: Wed Jan 02, 2008 4:51 pm
Posts: 1
I have a requirement for replicating any insert/update/delete from a source table to a target table with the same schema - basically the target table is a 'shadow' table.

While this can be achieved using triggers, I want to avoid it so that my code does not have to be aware of the database type in order to generate the trigger creation commands - I believe that there is no generic trigger creation command across different database types.

Is there any mechanism in hibernate that I can use to simulate this behavior? How about the interceptor mechanism - can this be used to simulate insert/update/delete triggers on a table?

Thanks for any pointers.


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.