This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Object Relational Mapping and the fly likes Issue in Inserting / Updating the table with trigger using Hibernate Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Issue in Inserting / Updating the table with trigger using Hibernate" Watch "Issue in Inserting / Updating the table with trigger using Hibernate" New topic
Author

Issue in Inserting / Updating the table with trigger using Hibernate

Rajendiran R. prakash
Greenhorn

Joined: Nov 22, 2007
Posts: 19
Hi Friends,

I have an issue in using the Hibernate for the table with trigger. I have a trigger on a table and that triggers on update or insertion of a record. But when i Integrate them with my application and insert a record using the application it throws the errors saying




Please help me solve this issue ASAP. Thanks in advance.......
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

What does the trigger do?


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Rajendiran R. prakash
Greenhorn

Joined: Nov 22, 2007
Posts: 19
This trigger will pass a Primary key of that table to a procedure and query the table inside the procedure.

This works fine when i do it in backend. Whereas it throws exception using the application. Please do the needful....
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Can you post your code and mapping?
Rajendiran R. prakash
Greenhorn

Joined: Nov 22, 2007
Posts: 19
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

What about your mapping and code? Could you post them (your session fatcory configuration doesn't tell us much)?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Issue in Inserting / Updating the table with trigger using Hibernate
 
Similar Threads
My After Insert Trigger is not firing
Get the current updating row, to be inserted into another table using trigger
why my oracle sequence id increases by 2 when I use hibernate to insert
Hibernate and Triggers
DB updated on quering the Entity getMethod?