Hibernate 执行sql
public List excuteMySQL(String sql) { try { Query queryObject = getSession().createSQLQuery(sql); return queryObject.list(); } catch (RuntimeException re) { throw re; }}
发布时间: 2012-09-24 13:49:41 作者: rapoo
Hibernate 执行sql
public List excuteMySQL(String sql) { try { Query queryObject = getSession().createSQLQuery(sql); return queryObject.list(); } catch (RuntimeException re) { throw re; }}