This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Object Relational Mapping and the fly likes How to call function from hibernate?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "How to call function from hibernate??" Watch "How to call function from hibernate??" New topic

How to call function from hibernate??

Vimal Panchal

Joined: Jun 22, 2007
Posts: 8
Hello Javaties,

I new with hibernate can you please help to call oracle function from hibernate?
I am getting some error in that.
See the code which i have return in main file.
and call the function many way but didn't get any result.

[Edited to use code tags - Paul Sturrock]
[ June 22, 2007: Message edited by: Paul Sturrock ]

vimal panchal
Paul Sturrock

Joined: Apr 14, 2004
Posts: 10336

I am getting some error in that.

What does the error say?

JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Mark Spritzler

Joined: Feb 05, 2001
Posts: 17271

You cannot call a Stored Procedure/Function that way, your named query is no where to be found, that is the error that you are getting.

Here is the Hibernate docs for using Stored Procedures/Functions

Good Luck


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Have you checked out Aspose?
subject: How to call function from hibernate??
jQuery in Action, 3rd edition