use of org.nutz.dao.test.meta.issue1302.Issue1302Master in project nutz by nutzam.
the class SimpleDaoTest method test_issue_1302.
@Test
public void test_issue_1302() {
dao.create(Issue1302Master.class, false);
Issue1302Master pojo = new Issue1302Master();
pojo.setName(R.UU32());
pojo.setAct(Issue1302UserAction.VIEW);
dao.insert(pojo);
System.out.println(DB.SQLSERVER.ordinal());
pojo = dao.fetch(Issue1302Master.class, pojo.getName());
assertEquals(Issue1302UserAction.VIEW, pojo.getAct());
}
Aggregations