• 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
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

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 ]
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic