System.out.println("description".equalsIgnoreCase(with3.getDescription()));
System.out.println(33 == with3.getQueryCollection().get(2).getValue());
}
public void testSubQuery(){
QueryWithSubquery sub = new QueryWithSubquery();
sub.setName("subQuery1");
sub.setSubQuery(new ObjectSubquery("name1"));
System.out.println(admin.save(sub));
QueryWithSubquery sub2 = new QueryWithSubquery();
sub2.setName("subQuery2");
sub2.setSubQuery(new ObjectSubquery("subQuery2"));
System.out.println(admin.save(sub2));
QueryWithSubquery sub3 = new QueryWithSubquery();
sub3.setName("subQuery3");
sub3.setSubQuery(new ObjectSubquery("name3"));
System.out.println(admin.save(sub3));
QueryWithSubquery sub4 = new QueryWithSubquery();
admin.obtain(sub4).If().For("value", ObjectSubquery.class).closeFor().in("name", QueryWithSubquery.class).find();
System.out.println("subQuery2".equalsIgnoreCase(sub4.getName()));
System.out.println("subQuery2".equalsIgnoreCase(sub4.getSubQuery().getValue()));
QueryWithSubquery sub5 = new QueryWithSubquery();
admin.obtain(sub5).If("id").greater(0).and().For("value", ObjectSubquery.class).
closeFor().in("name", QueryWithSubquery.class).find();
System.out.println("subQuery2".equalsIgnoreCase(sub5.getName()));
System.out.println("subQuery2".equalsIgnoreCase(sub5.getSubQuery().getValue()));
}