Hibernate 施行sql

Hibernate 执行sqlpublic List excuteMySQL(String sql) {try {Query queryObject getSession().createS

Hibernate 执行sql

public List excuteMySQL(String sql) {  try {   Query queryObject = getSession().createSQLQuery(sql);   return queryObject.list();  } catch (RuntimeException re) {   throw re;  }}