Map<String,Object> map = new HashMap<String,Object>();
map.put("table", "t_pet");
map.put("idColumn", "id");
map.put("columns", new String[]{"num","name","age","cate"});
map.put("values", new Object[]{123,"weiwei", 3, "dog"});
Pet pet = new Pet();
pet.setName("xxx");
pet.setNumber("4444");
pet.setAge(3);
pet.setType("cat");
final InsertSqlCreator<?> insert = SqlFactory.getInsertSql(map, pet);
String[] sql = insert.create();
Assert.assertEquals("INSERT INTO t_pet(num,name,age,cate) VALUES('123','weiwei','3','dog') ;", sql[0]);
Assert.assertEquals("INSERT INTO t_pet(num,name,age,cate) VALUES('4444','xxx','3','cat') ;", sql[1]);
}