-->
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: HQL and "IN" clause with multiple columns
PostPosted: Sat Jan 02, 2010 5:44 am 
Newbie

Joined: Tue Dec 30, 2008 6:24 pm
Posts: 5
Hi,
What is the syntax for a IN clause with multiple columns?
The following is the classical Sql request that I need to translate as a HQL request:

select * from my_table where (id1, id2) in ( (10,20), (30,40) )

Thx by advance for your reponses.

Francillo


Top
 Profile  
 
 Post subject: Re: HQL and "IN" clause with multiple columns
PostPosted: Mon Jan 04, 2010 10:48 am 
Newbie

Joined: Fri Dec 04, 2009 5:52 am
Posts: 9
Friend,

query="from Bean as Alias where Alias.csaid in ('U1001','U1002')";

i worked and have pasted here. Hope this wud help u.


regrds,
Jyeshta


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.