Changed limit behaviour
This commit is contained in:
parent
08f3175380
commit
a6237c2456
|
@ -50,7 +50,7 @@ public class AccountingPersistenceQueryPostgreSQL implements AccountingPersisten
|
|||
|
||||
public static final String URL_PROPERTY_KEY = AccountingPersistenceConfiguration.URL_PROPERTY_KEY;
|
||||
|
||||
public static final int MAX_TOP_LIMIT = 50;
|
||||
public static final int DEFAULT_TOP_LIMIT = 10;
|
||||
|
||||
protected AccountingPersistenceBackendQueryConfiguration configuration;
|
||||
|
||||
|
@ -215,8 +215,8 @@ public class AccountingPersistenceQueryPostgreSQL implements AccountingPersisten
|
|||
orderingProperty = AccountingPersistenceQuery.getDefaultOrderingProperties(clz);
|
||||
}
|
||||
|
||||
if(limit<1 || limit >50) {
|
||||
limit = MAX_TOP_LIMIT;
|
||||
if(limit<1) {
|
||||
limit = DEFAULT_TOP_LIMIT;
|
||||
}
|
||||
|
||||
SortedSet<NumberedFilter> result = new TreeSet<>();
|
||||
|
|
Loading…
Reference in New Issue