Hibernate 执行sql

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


	}

你可能感兴趣的:(java,sql,Hibernate)