-->
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.  [ 17 posts ]  Go to page Previous  1, 2
Author Message
 Post subject:
PostPosted: Mon Apr 07, 2008 2:57 am 
Newbie

Joined: Tue Mar 25, 2008 4:14 am
Posts: 7
Location: Israel
The trigger that I posted is a particular trigger that I need to have in my DB for my application purposes. In general trigger is a PL/SQL procedure that is invoked on particular events. In particular the trigger that I posted updates some table called shard_local_user each time table IQ_User is updated. It is just an example. You don't need to use triggers. You can put any DDL statement into <create> tag of <database-object> tag and it will be executed in your db. I gave it as an alternative to hbm2ddl in case some particular task is not working in hbm2ddl (as was my case). But in this solution you have to write yourself what exectly you want to be performed in DB. As opposed to hbm2ddl where Hibernate itself finds out what should be done to DB based on your hbm files

_________________
Best regards,
Michael Gantman


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 07, 2008 4:16 am 
Senior
Senior

Joined: Mon Feb 25, 2008 1:48 am
Posts: 191
Location: India
Thanks Michael for being so patient in clearing my doubts. Though it will not solve my problem in hand, I guess I can use it for another scenario :) Thanks!

_________________
Sukirtha


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 17 posts ]  Go to page Previous  1, 2

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.