-->
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: Parameterized Query
PostPosted: Mon Jan 21, 2008 8:33 am 
Newbie

Joined: Mon Jan 21, 2008 8:19 am
Posts: 1
Hi Fellow mates

I have a req in which 2 list's are passed from the front end .

ie List 1 contains ids and List 2 contains some Alpahbets

followings are the Data base records

1000 A
1000 B
1001 A
1001 C


we wants records which has the combinations of (1000,A) and (1001,C)

issue here is if i use IN CLAUSE and pass the list like

from beanname where id in (:idlist) and alpabhet in (alphaberlist)

we will get all the records but we need only records stated below

1000 A
1001 C

please help me how can i write the Hql to solve the issue


Thanks in advance

Sidd


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.