File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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 Android Security Essentials Live Lessons this week in the Android 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
 
Consider Paul's rocket mass heater.
 
subject: calling of stored procedure with out parater in hibernate?
 
Similar Threads
Problem with Sort Method
Erroneous sym type What does this mean?
Fractions
convert char to int in a string?
Hibernate what class need to be specified when calling stored procedure which only returns a number