-->
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: Trouble creating an IN expression.
PostPosted: Fri May 20, 2005 3:01 pm 
Newbie

Joined: Fri May 20, 2005 2:47 pm
Posts: 1
Location: Dallas, Texas
I am not able to create an IN expression in Hibernate version: 2.1 running in JBoss. The following is an example of the type of code I have written:

List listOfIds = new ArrayList();
listOfIds.add(new Integer(103));
listOfIds.add(new Integer(104));
listOfIds.add(new Integer(105));

criteria.add(Expression.in("id", listOfIds));
List results = criteria.list();


It correctly creates an object of class of net.sf.hibernate.expression.InExpression but the the sql output is where id=?. We also have the "Dialect" property set correctly. Am I doing something wrong or is this a bug?

Thanks in advance for any help.

_________________
Ran Pleasant


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.