67,541
社区成员
发帖
与我相关
我的任务
分享
public List findAllQuesManager() {
Session sess = getSession();
Transaction tx = sess.beginTransaction();
List l=null;
try {
//你的业务处理
tx.commit();
return l;
} catch (Exception e) {
tx.rollback();
throw new RuntimeException(this.getClass().getName() + "业务逻辑错误", e);
} finally {
sess.close();
}
}