-->
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: How to get column names (MetaData) when we use Native SQL??
PostPosted: Tue Oct 09, 2007 7:24 pm 
Newbie

Joined: Fri Jul 28, 2006 9:52 am
Posts: 12
I am using the native SQL in Hibernate and iam not using any mapping xml/pojo. How can i get the column level information from the query object??

I have the code like the following

Code:
Query qry = session.createSQLQuery("Select * fom employee");

List lstEmployee = qry.list();


This list contains each row as an object array. Now using the Query object how do i retrieve the column names and the type of columns in hibernate.

Any suggestions??


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.