if (dao.meta().isMySql()) {
dao.insert(Pet.create("A").setNickName("AAA"));
dao.insert(Pet.create("B").setNickName("B%B"));
Criteria cri = Cnd.cri();
cri.where().andLike("alias", "\\%");
List<Pet> pets = dao.query(Pet.class, cri);
assertEquals(1, pets.size());
assertEquals("B", pets.get(0).getName());
}
}