Project

General

Profile

Revision 705f268c

ID705f268c2410e07bc4ddab7c5995ed3a80b0d145
Parent 16f5f3d4
Child 1c8d6eed

Added by Andreas Müller over 3 years ago

ref #6612 implemented list (ref ...) for RegistrationDaoHibernateImpl

View differences:

cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/service/RegistrationServiceImpl.java
54 54

  
55 55
        long numberOfResults = dao.count(reference);
56 56

  
57
        List<Registration> results = new ArrayList<Registration>();
57
        List<Registration> results = new ArrayList<>();
58 58
        if(AbstractPagerImpl.hasResultsInRange(numberOfResults, pageIndex, pageSize)) {
59 59
            Integer limit = PagerUtils.limitFor(pageSize);
60 60
            Integer start = PagerUtils.startFor(pageSize, pageIndex);
61
            results = dao.list(limit, start, reference, orderHints, propertyPaths);
61
            results = dao.list(reference, limit, start, propertyPaths);
62 62
        }
63 63

  
64
         return new DefaultPagerImpl<Registration>(pageIndex, numberOfResults, pageSize, results);
64
         return new DefaultPagerImpl<>(pageIndex, numberOfResults, pageSize, results);
65 65
    }
66 66

  
67 67
    /**
......
80 80
            results = dao.list(Registration.class, "submitter", submitter, null, limit, start, orderHints, propertyPaths);
81 81
        }
82 82

  
83
         return new DefaultPagerImpl<Registration>(pageIndex, numberOfResults, pageSize, results);
83
         return new DefaultPagerImpl<>(pageIndex, numberOfResults, pageSize, results);
84 84
    }
85 85

  
86 86

  

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)