A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Object Relational Mapping
Calling stored procedures from hibernate
Raj Kumar Bindal
Joined: Apr 15, 2006
Nov 01, 2010 12:57:11
Can we call any type of stored procedure from hibernate(e.g. calling stored procedure returning multiple values etc)?
Is it something that only stored procedures returning sys_refcursor can be called from hibernate?
Joined: Apr 14, 2004
Nov 02, 2010 03:14:53
So long as a stored procedure returns a result set as the first out parameter you can call it from Hibernate. See the
for an example.
One thing worth thinking about is
you might want to call a stored procedure from Hibernate. Unless it is because you have no choice its not something I'd choose to do.
I agree. Here's the link:
subject: Calling stored procedures from hibernate
About Hibernate Support for StoredProcedure
stored procedures in hibernate
How resultset is returned by stored procedure?
how do i get this boolean
Any sucess using Hibernate, MySQL, and sql-update with stored procedures?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015