aspose file tools*
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 Spring in Action this week in the Spring 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:
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Hibernate / Stored Procedure / Reporting