The following document contains the results of PMD's CPD 4.2.2.
| File | Line |
|---|---|
| net\smartlab\web\registry\PersonFactory.java | 232 |
| net\smartlab\web\registry\PersonFactory.java | 270 |
public Collection pageByNotInList(long listId,long notInListId,SearchInfo info) throws DAOException {
try {
if (logger.isDebugEnabled()) {
logger.debug("pageByNotInLists() - start");
}
Criteria personInListCriteria=super.current().createCriteria(this.getMappedClass());
personInListCriteria.createAlias("lists", "lists");
personInListCriteria.add(Expression.eq("lists.id", new Long(notInListId)));
personInListCriteria.setProjection(Projections.property("id"));
Collection results=personInListCriteria.list();
Criteria criteria=createCriteria(info);
criteria.createAlias("lists", "parent");
criteria.add(Expression.eq("parent.id", new Long(listId)));
criteria.add(Expression.not(Expression.in("id", results)));
criteria.setFetchMode("addresses", FetchMode.JOIN);
criteria.setResultTransformer(Criteria.DISTINCT_ROOT_ENTITY);
return new Paginator(criteria); | |