SelectQuery query = new SelectQuery(ExtendedTypeEntity.class, in);
assertEquals(2, e1.getObjectContext().performQuery(query).size());
}
public void testInExpressionExtendedTypeList() {
ExtendedTypeEntity e1 = createDataContext().newObject(ExtendedTypeEntity.class);
e1.setName(new StringET1("X"));
ExtendedTypeEntity e2 = e1.getObjectContext().newObject(ExtendedTypeEntity.class);
e2.setName(new StringET1("Y"));
ExtendedTypeEntity e3 = e1.getObjectContext().newObject(ExtendedTypeEntity.class);
e3.setName(new StringET1("Z"));
e1.getObjectContext().commitChanges();
Expression in = ExpressionFactory.inExp(ExtendedTypeEntity.NAME_PROPERTY, Arrays
.asList(new StringET1("X"), new StringET1("Y")));