• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

About Hibernate Support for StoredProcedure

 
Ranch Hand
Posts: 185
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
We are using Hibernate in our Project.
For calling Stored Procedure We are doing in the normal way like executing the Callable Statement.
I found that Hibernate 3 will support the Stored Procedures too.
Now, My question is which is the better option whether calling the stored procedures through Hibernate or Callable Statement?
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can call Stored Procedures through Hibernate. There are two caveats.

1. You can have only one out parameter and it must be the first parameter.
2. That out parameter should be a ref cursor, not custom datatypes allowed.

Mark
 
krishna bulusu
Ranch Hand
Posts: 185
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Mark,

But, Which is Advantageous(Or In terms of Performance), calling through plain JDBC or calling through Hibernate?
And also, My Stored Procedure is returning a CLOB object. So, in such case, can I call the Stored Procedure through Hibernate?
[ July 27, 2007: Message edited by: krishna bulusu ]
reply
    Bookmark Topic Watch Topic
  • New Topic