摘要:
程序代码:public List<WenshuInfo> findBySql(String sql) { log.debug("findBuSql WenshuInfo instances"); Transaction tran = null; Session session = HibernateSessionFactory.getSession(); try { tran = session.beginTransaction(); Query queryObject = session.createQuery(sql); session.flush(); . 阅读全文