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 Hibernate / Stored Procedure / Reporting Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Hibernate / Stored Procedure / Reporting" Watch "Hibernate / Stored Procedure / Reporting" New topic

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.


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

Joined: Sep 09, 2009
Posts: 25
To get the connection:
I agree. Here's the link:
subject: Hibernate / Stored Procedure / Reporting
jQuery in Action, 3rd edition