List of usage examples for org.hibernate.criterion Restrictions conjunction
public static Conjunction conjunction(Criterion... conditions)
From source file:org.egov.api.controller.EmployeeController.java
License:Open Source License
private Criterion addPriorityCondition(Criterion existingCondition, String priority) { if (StringUtils.isNotBlank(priority)) { return Restrictions.conjunction(existingCondition) .add(Restrictions.eq("priority.id", priorityService.getPriorityByCode(priority).getId())); }//from w ww. j av a 2 s . co m return existingCondition; }