Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to insert data in stored procedure from hibernate?

 
raj jaiswal
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
All i am trying to insert data in database by using store procedure .
i am getting error .please find the solution..




my code is....

this is
the method where i calling store procedure....




this is hbm.xml file



Please provide me solution
Thanks
Raj jaiswal
 
shiva valanukonda
Greenhorn
Posts: 26
Hibernate jQuery Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi raj jaiswal,
I was facing the same problem and getting the same error .
Finally i got concluded that " native Query" doesnot supported for calling a stored procedure.
If you got any solutions please revert back to me .

Thanks
Shiva
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use stored procedures in Hibernate for querying if the procedure returns a result set as its first out parameter. There are a number of other important restrictions that are worth reading, specifically the callable attribute.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic