fn.setValue("Bamm Bamm");
record.setFirstname(fn);
record.setLastname("Rubble");
record.setId1(new Integer(2));
record.setId2(new Integer(3));
dao.insertMyObject(record);
MyObjectExample example = new MyObjectExample();
fn = new FirstName();
fn.setValue("B%");
example.createCriteria().andFirstnameNotLike(fn);