aspose file tools
The moose likes Object Relational Mapping and the fly likes how we can call stored procedure in hibernate? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Object Relational Mapping
Reply Bookmark "how we can call stored procedure in hibernate?" Watch "how we can call stored procedure in hibernate?" New topic
Author

how we can call stored procedure in hibernate?

raminaa niilian
Ranch Hand

Joined: Jul 14, 2005
Posts: 548
Hi
Thank you for reading my post
can some one explain me how we can call and use result of an stored procedure using hibernate?

thanks
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 16622

Well, I am going to forward you off to the hibernate.org website where in the FAQ they have really good stuff for stored procedures.

There are two caveats to stored procedures.

1. You can only have one out parameter,
2. and it must be the first parameter, the out cannot be the second, third or more paramater.

As stored procedures you will basically define a mpaaing of a named-query in you config file. You can also configure your insert, update and deletes to call triggers too.

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
 
IntelliJ Java IDE
 
subject: how we can call stored procedure in hibernate?
 
Threads others viewed
How to call stored procedure through Hibernate?
Calling stored procedures from hibernate
Can we make a query to call a stored procedure using JPA and Hibernate as persistance provider
Stored Procedure + Hibernate + DB2
Hibernate multi row insert
jQuery in Action, 2nd edition