Created
August 30, 2012 03:14
-
-
Save sfss5362/3521971 to your computer and use it in GitHub Desktop.
NutzDao 使用问题,表中已经有数据,不能添加
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
错误例子 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