-->
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.  [ 4 posts ] 
Author Message
 Post subject: Hibernate generates Alias in Where clause
PostPosted: Mon Nov 30, 2009 5:23 am 
Newbie

Joined: Mon Nov 30, 2009 5:16 am
Posts: 2
Hi all,

I have problem when trying to make a query with HibernateCriteria. Without a projection, everything went fine. However, when I applied a projection on the criteria, the query failed because Hibernate generated a query with alias (same as specified in the projection) in WHERE clause. Has anyone faced this? If yes, could you please point me out how to solve this?

Thanks a lot,


Top
 Profile  
 
 Post subject: Re: Hibernate generates Alias in Where clause
PostPosted: Mon Nov 30, 2009 9:43 pm 
Newbie

Joined: Mon Nov 30, 2009 5:16 am
Posts: 2
Hi,

I finally managed to do it by not using any Restrictions and it worked for now.

Cheers,


Top
 Profile  
 
 Post subject: Re: Hibernate generates Alias in Where clause
PostPosted: Mon Nov 30, 2009 10:19 pm 
Newbie

Joined: Mon Nov 30, 2009 10:13 pm
Posts: 5
congratulations!u r a so smart.

_________________
links of london
ugg boots
wow gold


Top
 Profile  
 
 Post subject: Re: Hibernate generates Alias in Where clause
PostPosted: Tue Oct 18, 2011 11:23 am 
Newbie

Joined: Thu Sep 16, 2010 11:16 am
Posts: 1
phoenixvn wrote:
Hi,

I finally managed to do it by not using any Restrictions and it worked for now.

Cheers,


How did you manage it?


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