aspose file tools*
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
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