List<VarcharType> varcharResult = VarcharTypePeer.doSelect(criteria);
assertEquals(1, varcharResult.size());
assertEquals("text2", varcharResult.get(0).getId());
criteria = new Criteria();
criteria.where(IntegerTypePeer.ID, null, Criteria.NOT_EQUAL)
.and(IntegerTypePeer.INTEGER_OBJECT_VALUE, null, Criteria.NOT_EQUAL);
List<IntegerType> integerResult = IntegerTypePeer.doSelect(criteria);
assertEquals(1, integerResult.size());
assertEquals(integerTypeNotNull.getId(), integerResult.get(0).getId());