Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to execute java function after update in mysql table

 
Rohit More
Greenhorn
Posts: 10
Hibernate Linux Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Everyone,
My motive is to create insert trigger/ event on table and execute some java function.
I am using mysql database with hibernate.

Is there any functionality provided by hibernate?
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 35279
384
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A trigger happens on the database level. If your database supports Java stored procedures, you can use that.

If not, you'd need to add logic to the relevant method in your code to call the desired Java function.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic