hibernate 处理事务:
1、继承:org.springframework.orm.hibernate3.support.HibernateDaoSupport
public void deleteOper(final String sql, List<Component> lists) {
Session session = getSessionFactory().openSession();
Transaction tx = session.beginTransaction();
//执行第一个删除
//执行第二个删除
tx.commit();
}