JPA server shouldn't report a totalCount in Bundle of "-1" when

there are no results
This commit is contained in:
James Agnew 2016-10-07 17:52:06 -04:00
parent b37a1edaae
commit b1266cca71
2 changed files with 5 additions and 1 deletions

View File

@ -253,7 +253,7 @@ public final class PersistedJpaBundleProvider implements IBundleProvider {
@Override
public int size() {
ensureSearchEntityLoaded();
return mySearchEntity.getTotalCount();
return Math.max(0, mySearchEntity.getTotalCount());
}
public static Pageable toPage(final int theFromIndex, int theToIndex) {

View File

@ -176,6 +176,10 @@
Fluent client can now return types other than Parameters
when invoking operations.
</action>
<action type="fix">
JPA server shouldn't report a totalCount in Bundle of "-1" when
there are no results
</action>
</release>
<release version="2.0" date="2016-08-30">
<action type="fix">