Meaningless Drivel is fun!*
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

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 17249

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
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: How to call function from hibernate??
Similar Threads
got NullpointerExceptiom form this code
Hibernate: How to tell the DB who is updating data
Hibernate, ResultSet and PrepareStatement