aspose file tools*
The moose likes Object Relational Mapping and the fly likes calling of stored procedure with out parater in hibernate? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of JavaScript Promises Essentials this week in the JavaScript forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "calling of stored procedure with out parater in hibernate?" Watch "calling of stored procedure with out parater in hibernate?" New topic
Author

calling of stored procedure with out parater in hibernate?

Manish Shinde
Ranch Hand

Joined: Mar 30, 2011
Posts: 39
HI All,

i m facing some problem while calling simple oracle stored procedure from hibernate.

Following is the procedure & code.

1)


2)test.hbm.xml (here i m calling procedure)

or i have tried another way


3) Test.java


here my procedure is getting called but it is giving pl/sql error : wrong number or types of arguments in call to 'GETSUM'
i tested this procedure on oracle editor it is working fine but while running from the hibernate it is giving error .

what am i missing?

Thanks In Advance.

Regards,
Manish
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: calling of stored procedure with out parater in hibernate?