File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Object Relational Mapping and the fly likes Hibernate Exception: Could not extract result set metadata Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Hibernate Exception: Could not extract result set metadata" Watch "Hibernate Exception: Could not extract result set metadata" New topic
Author

Hibernate Exception: Could not extract result set metadata

Paulo Sebasti´┐Żo
Greenhorn

Joined: Jan 17, 2008
Posts: 6
Hi,

I'm having the problem which titles this post. When I call a named query it gives my an:



However, the called procedure isn't supposed to return any kind of result set. So why's Hibernate looking for one when there isn't?!

Here's my mapping:


Thanks for everything,
Paulo
Paulo Sebasti´┐Żo
Greenhorn

Joined: Jan 17, 2008
Posts: 6
Note to my stupid self:

- Never call a .list() method over an hibernate named query when you don't expect it to return a result set. Instead, just call an executeUpdate().

Problem solved. You can close down the thread
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Hibernate Exception: Could not extract result set metadata
 
Similar Threads
Problem with Hibernate Mapping
Hibernate call to Stored Procedure that does not return anything
Executing stored procedures in hibernate
Hibernate named query to execute sproc on sql server NPE
Error in named native query (Invalid Column Name)