-->
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.  [ 1 post ] 
Author Message
 Post subject: Getting Metadata from SQLQuery in hibernate
PostPosted: Mon Oct 20, 2008 5:00 pm 
Newbie

Joined: Mon Oct 20, 2008 4:45 pm
Posts: 5
Am trying to get the metadata(number of output columns) from the result of SQLQuery.

Can i get something similar to getMetaData in ResultSet.


Session session = getHibernateTemplate().getSessionFactory().getCurrentSession();

SQLQuery query = session.createSQLQuery(sqlQuery);
query.list();


Now i want the number of Output Columns (not the number of rows)which the list generates.

_________________
Thank You,
Ajit


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

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.