标签:
Criteria criteria = session.createCriteria(TaDiagnoseSystem.class);
//增加查询条件
if(StringUtils.isNotEmpty(systemName)){
// criteria.createCriteria("taDiagnoseSystemSubs").add(Restrictions.ilike("systemName", systemName, MatchMode.ANYWHERE));
criteria.createCriteria("taDiagnoseSystemSubs").add(Expression.like("systemName", "%"+systemName+"%"));
}
hibernate模糊查询-Restrictions.ilike & Expression.like
标签:
原文地址:http://www.cnblogs.com/chensuozhang/p/5128303.html