JPA server shouldn't report a totalCount in Bundle of "-1" when
there are no results
This commit is contained in:
parent
b37a1edaae
commit
b1266cca71
|
@ -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) {
|
||||
|
|
|
@ -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">
|
||||
|
|
Loading…
Reference in New Issue