This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Object Relational Mapping and the fly likes Hibernate / Stored Procedure / Reporting 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 "Hibernate / Stored Procedure / Reporting" Watch "Hibernate / Stored Procedure / Reporting" New topic
Author

Hibernate / Stored Procedure / Reporting

Hanna Habashy
Ranch Hand

Joined: Aug 20, 2003
Posts: 532

I need to call some stored procedure for reporting. The Store Proc. DO NOT return an entity, so I cannot configure them as name queries in a configuration files.

The only way I know is to:



The session.connection() method is deprecated, and I couldn't find any other way of obtaining a connection object.

Please advise how to obtain a connection object, and if there is any other way of calling a stored procedure.

Thanks


SCJD 1.4<br />SCJP 1.4<br />-----------------------------------<br />"With regard to excellence, it is not enough to know, but we must try to have and use it.<br />" Aristotle
Justin Chi
Greenhorn

Joined: Sep 09, 2009
Posts: 25
To get the connection:
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Hibernate / Stored Procedure / Reporting
 
Similar Threads
Named query for stored procedure
Clobs, Stored procedures and Oracle 8i
Oracle Stored Procedure Problem...
List Updation
Problem in Two-phase Commit