-->
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.  [ 3 posts ] 
Author Message
 Post subject: SQLQuery column names
PostPosted: Mon Sep 25, 2006 6:50 am 
Newbie

Joined: Thu Sep 21, 2006 7:12 am
Posts: 6
Is there any way to get the column names for an sql query that does not return a java class, just raw data?

Regards
Tamas


Hibernate version:
Hibernate 3


Top
 Profile  
 
 Post subject: rephrase
PostPosted: Wed Sep 27, 2006 8:43 am 
Newbie

Joined: Thu Sep 21, 2006 7:12 am
Posts: 6
Ok, so let me rephrase the question.

can you confirm that there is no way to get the column names of an SQLQuery?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 27, 2006 8:56 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
you mean for a native sql ? then no, query.getAliases is not yet implemented.

You could though use a resulttransformer that returns a Map and the keys would be the aliases.

_________________
Max
Don't forget to rate


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.