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
|
|