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 阅读(352) 评论(0)  编辑  收藏 所属分类: Hibernate
<2026年2月>
25262728293031
1234567
891011121314
15161718192021
22232425262728
1234567

留言簿

文章分类

文章档案

J2EE

搜索

  •  

最新评论