public void testMap() {
Transaction.execute(new Trans() {
@Override
public void run(Object... args) throws Exception {
Pet pet = Pet.inst.find().first();
Map<String, Object> map = new HashMap<String, Object>();
map.put("table", "t_pet");
map.put("idColumn", "id");
map.put("idValue", pet.getId());
map.put("columns",
new String[] { "num", "name", "age", "cate" });
map.put("values", new Object[] { 123, "weiwei", 3, "dog" });
DAOFactory.getUpdateDAO().update(map);
DAOFactory.getInsertDAO().insert(map);