use of org.test.bean.Export in project Axe by DongyuCai.
the class DaoTest method testDaoEntity.
public static void testDaoEntity() throws Exception {
TestDao testDao = BeanHelper.getBean(TestDao.class);
Export export = new Export();
export.setAccountId(1);
export.setCode("a");
export.setCreateTime(new Date());
export.setDownloadTimes(0);
export.setLastDownloadTime(null);
export.setName("xxx");
export.setProcess(100);
export.setStatus(1);
export.setStillWaitSec(100);
testDao.saveEntity(export);
export = testDao.getEntity(export);
System.out.println("getEntity:" + JsonUtil.toJson(export));
export.setCreateTime(new Date());
export = testDao.saveEntity(export);
System.out.println("saveEntity:" + export);
export.setName("新框架测试_SqlHelper");
int rows = testDao.updateEntity(export);
System.out.println("updateEntity:" + rows);
export = testDao.getEntity(export);
System.out.println("getEntity:" + JsonUtil.toJson(export));
rows = testDao.deleteEntity(export);
System.out.println("deleteEntity:" + rows);
rows = testDao.updateEntity(export);
System.out.println("updateEntity:" + rows);
export = testDao.insertEntity(export);
System.out.println("updateEntity:" + rows);
System.exit(0);
}