摘要: public List<T> getByIds(Long[] ids) { return getSession().createQuery(// "FROM User WHERE id IN (:ids)")// .setParameterList("ids", ids)// .list(); } 阅读全文
posted @ 2016-08-31 23:42 江山一族 阅读(4085) 评论(0) 推荐(0) 编辑
摘要: public abstract class BaseDaoImpl<T> implements BaseDao<T> { private Class<T> clazz; public List<T> findAll() { return getSession().createQuery(// "FR 阅读全文
posted @ 2016-08-31 23:37 江山一族 阅读(1548) 评论(0) 推荐(0) 编辑