File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
It's not a secret anymore!