posts - 0,  comments - 20,  trackbacks - 0
使用hibernate的session,取得一个连接,然后用jdbc.   
session.connection().prepareStatement("truncate   table   Table1").execute();  

此时事务勿需提交,效果一样
//  this.session.beginTransaction().commit();

posted on 2008-08-28 08:57 Documents 阅读(326) 评论(0)  编辑  收藏 所属分类: Hibernate
<2025年4月>
303112345
6789101112
13141516171819
20212223242526
27282930123
45678910

留言簿

文章分类

文章档案

J2EE

搜索

  •  

最新评论