• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Issue in Inserting / Updating the table with trigger using Hibernate

 
Rajendiran R. prakash
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What does the trigger do?
 
Rajendiran R. prakash
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you post your code and mapping?
 
Rajendiran R. prakash
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What about your mapping and code? Could you post them (your session fatcory configuration doesn't tell us much)?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic