• 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

Calling a Stored Procedures for Hibernate

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

I'm looking for a way to call stored procedure with hibernate.

I am Using XDoclet annotations to generate the hibernate configuration and mapping files. How do i generate the meta-data for the stored procedure.

Anyone have any documents, examples, or suggestions on how to do this?

Thanks,
Srikanth.
 
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
Yep, you will use Named Queries for the stored procedures.

there are some rules.

1) Only one out parameter allowed and it must be the first parameter.
2) the out parameter must be a ref cursor.

http://www.hibernate.org/hib_docs/v3/reference/en/html/querysql.html#sp_query

Mark
[ June 04, 2008: Message edited by: Mark Spritzler ]
 
reply
    Bookmark Topic Watch Topic
  • New Topic