Example #1
0
 /**
  * 设置or(Criterion c, CriteriaQuery query, int source)(或)查询条件
  *
  * @param keyname
  * @param keyvalue1
  * @param keyvalue2
  */
 public Criterion or(Criterion c, CriteriaQuery query, int source) {
   return Restrictions.or(c, query.getCriterionList().getParas(source));
 }
Example #2
0
 /**
  * 设置Or查询
  *
  * @param query
  * @param source条件1
  * @param dest条件2
  * @return
  */
 public Criterion or(CriteriaQuery query, int source, int dest) {
   return Restrictions.or(
       query.getCriterionList().getParas(source), query.getCriterionList().getParas(dest));
 }