Re: Question about GenericDaoBase#searchAndCount method

2019-07-01 Thread Daan Hoogland
the count in the fragment has an obvious trivial bug: it counts objects while one of the objects is the actual count. it should read ``` if (count < (objects.size() - 1)) { count = objects.size() - 1; } ``` On Mon, Jul 1, 2019 at 10:57 AM Rohit Yadav wrote: > In some

Re: Question about GenericDaoBase#searchAndCount method

2019-07-01 Thread Rohit Yadav
In some cases where the response is being paginated, the count would represent the total number of resources while the size of the returned array/list of resources would be less. Regards, Rohit Yadav Software Architect, ShapeBlue https://www.shapeblue.com Fr