DetachedCriteria dc = DetachedCriteria.forClass(UserPickOut.class);
dc.add(Restrictions.or(Restrictions.like("name", param, MatchMode.ANYWHERE), Restrictions
.or(Restrictions.like("publishColumn", param, MatchMode.ANYWHERE), Restrictions
.like("poolColumn", param, MatchMode.ANYWHERE))));
dc.add(Restrictions.eq("configUser", userName));
Hibernate 模糊搜索方法
最新推荐文章于 2021-01-21 02:43:50 发布