日期:2014-05-18 浏览次数:20728 次
public static void main(String[] args) {
Session session=HibernateSessionFactory.getSessionFactory().getCurrentSession();
Transaction tx=session.beginTransaction();
SQLQuery query=session.createSQLQuery("select new s.xh,s.xm,s.zymc,p.prizeOption,p.schoolYear from jxj_PrizeInfo p,t_main s where p.studentID=s.xh");
tx.commit();
}