wood burning stoves 2.0*
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 OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP 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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Hibernate Exception: Could not extract result set metadata