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.  [ 6 posts ] 
Author Message
 Post subject: SQL setResultTransformer support equivalent in Hibernate3.1?
PostPosted: Wed Oct 04, 2006 2:04 pm 
Newbie

Joined: Fri Nov 04, 2005 11:42 am
Posts: 13
Hi

I read a few posts and gathered that Hibernate 3.2 will have setResultTransformer support for native SQL queries, which will be great!. Meanwhile, is there any equivalent feature in Hibernate 3.1?

What I want to do is execute a native SQL query for which I dont have a java entity. And so from the result of the query I want to get the column names returned. Is there any way to do that currently in Hibernate 3.1 or the only way right now is to use regular JDBC stuff i.e. ResultSetMetaData? Thanks.

Neha.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 06, 2006 12:27 pm 
Newbie

Joined: Fri Nov 04, 2005 11:42 am
Posts: 13
Does anyone have any idea, it will be a great help, thanks.

Neha.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 06, 2006 5:42 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
no, old 3.1 doesn't have the new features that is coming in 3.2; mindblowing concept, right ? :)

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 06, 2006 7:06 pm 
Newbie

Joined: Fri Nov 04, 2005 11:42 am
Posts: 13
Thanks, I know 3.1 does not have the new features coming up in 3.2. But I wanted to know if there is any other workaround(except using the regular JDBC libraries) to achieve the same thing that setResultTransformer for native SQL will do in the new version.

Definitely, mind blowing concept :).

Neha.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Oct 07, 2006 10:29 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
nope no other way since if there were we didn't need resulttransformer ;)

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 09, 2006 8:15 pm 
Newbie

Joined: Fri Nov 04, 2005 11:42 am
Posts: 13
Okay, thanks for the help :).

Neha.


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