-->
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: Select list & createSQLQuery
PostPosted: Wed Aug 09, 2006 11:49 pm 
Newbie

Joined: Thu Jul 27, 2006 10:35 am
Posts: 16
Hi All

I am using Hibernate version2 & the createSQLQuery.

The createSQLQuery works fine when i retreive all the columns from the underlying table something like this

Select rdl.* from <table_name> where rdl.deal_date = blah blah

But now I want to do something like this

select rdl.deal_date from <table_name> where blah blah

but this fails with the following error
***********************
No column name found for property deal_date
**********************
when the same thing works when I qualify it in the where clause
but the moment I have it in the select list it fails

Do post your thoughts on the same

Regards


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.