-->
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.  [ 2 posts ] 
Author Message
 Post subject: Problem to execute Select query with AS clause inside on Mac
PostPosted: Tue Jul 27, 2010 6:41 am 
Newbie

Joined: Tue Jul 27, 2010 6:32 am
Posts: 1
Hi all,

I am working with Mysql 5.1.45 for Mac.
In my application i must execute some SELECT query (SQLQuery) with some AS clause inside them.
When I try to execute the query calling the method :

Iterator resultObj = query.list().iterator();

I got an exception from Hibernate : query can not be executed

All the Select query which contain AS clause do not work on my Mac.
Any sggestion ?
Cheers.

warxsg


Top
 Profile  
 
 Post subject: Re: Problem to execute Select query with AS clause inside on Mac
PostPosted: Tue Jul 27, 2010 11:15 am 
Newbie

Joined: Mon Jul 26, 2010 6:50 am
Posts: 6
Hi,

maybe the column definition in your entity´s properties do not match the names you select the columns as?
Could you post the whole exception, maybe the properties of your entity and the select statement?

br


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