This week's book giveaway is in the Open Source forum.
We're giving away four copies of RabbitMQ in Depth and have Gavin Roy on-line!
See this thread for details.
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 RabbitMQ in Depth this week in the Open Source 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?