Forums Register Login

Hibernate triggers

+Pie Number of slices to send: Send
Hi Friends,
I need to know how to create triggers in hibernate.
I want to create a trigger on inserting into one table. On inserting into one table i want to insert or update another table.
how this can be done.

Any suggestions would be of great help.
Thanks in advance
+Pie Number of slices to send: Send
See Interceptors & Events. You can inspect/manipulate properties of an object before it is saved/updated/deleted etc...
+Pie Number of slices to send: Send
Thanks for the quick reply Vijitha,

So we need to change in configuration file and class that implements the event.?

Is this the only way it can be done?
+Pie Number of slices to send: Send
Since they are for react to events inside Hibernate, yes you need to change/implement them. It's not outside the Hibernate...
I am going down to the lab. Do NOT let anyone in. Not even this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 2587 times.
Similar Threads
view ddl for all triggers
How to execute two SQL stmts. simulteneously ?
Get the current updating row, to be inserted into another table using trigger
which generator type to use..?
run sql file using JDBC
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 15, 2024 23:43:00.