Skip to content

Instantly share code, notes, and snippets.

@sfss5362
Created August 30, 2012 03:14
Show Gist options
  • Save sfss5362/3521971 to your computer and use it in GitHub Desktop.
Save sfss5362/3521971 to your computer and use it in GitHub Desktop.
NutzDao 使用问题,表中已经有数据,不能添加
错误例子 myeclipse 8.5 ;sql2000
http://pan.baidu.com/share/link?shareid=10172&uk=554011874
----------------
@Test
public void test00()
{
Trans.exec(new Atom()
{
public void run()
{
update00();
}
});
}
private void update00()
{
try
{
String delSql = "delete from t_person";
DbKit.executeSQL(delSql,
dao);
VOPerson vo = new VOPerson();
String id = StringUT.getUUID();
vo.setID(id);
vo.setUserName("兽兽的网名");
dao.insert(vo);
}
catch (Exception e)
{
e.printStackTrace();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment