读书人

hibernate 跟 MySql in的参数变量

发布时间: 2012-11-05 09:35:12 作者: rapoo

hibernate 和 MySql in的参数变量

Mysql :

?

String hql = "from UserObd u where u.chariotest in (:list) and u.rectime > :syntime";Query query = super.getSession().createQuery(hql).setParameterList("list",chariotest).setDate("syntime", synTime);return query.list();
?

读书人网 >Mysql

热点推荐