-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Resultset metadata
PostPosted: Tue Dec 06, 2005 10:23 am 
Newbie

Joined: Tue Dec 06, 2005 10:13 am
Posts: 17
Is there a way of accessing resultset metadata of SQL query ?

I want to use Hibernate named queries and get query data as a list of object arrays. But I also have to access the resulted query metadata.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 06, 2005 11:03 am 
Newbie

Joined: Tue Oct 25, 2005 12:32 pm
Posts: 13
I assume you want the equivalent of ResultSetMetaData in JDBC? The JDBC ResultSet looks inaccessible to me if you're using Hibernate Query. So that means you can't get the ResultSetMetaData. It looks to me like you'd have to get the JDBC connection from the session and execute the query yourself in order to have access to that interface. I'm curious about what you need this for though since you say that you're mapping to an object anyway. That, combined with your mapping file, provides quite a bit.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.