Skip to content

Commit 07ffb60

Browse files
committed
Added default where clause for Pagination
1 parent 977f325 commit 07ffb60

File tree

1 file changed

+1
-1
lines changed
  • bee.persistent/src/jpa/kotlin/com/beeproduced/bee/persistent/jpa/repository/extensions

1 file changed

+1
-1
lines changed

bee.persistent/src/jpa/kotlin/com/beeproduced/bee/persistent/jpa/repository/extensions/Pagination.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class Pagination<V, CV, C, W>(
2121
private val repository: BaseDataRepository<V, *>,
2222
private val orderBy: ColumnSpec<CV>,
2323
private val cursor: Cursor<V, CV, C>,
24-
private val where: (W) -> PredicateSpec,
24+
private val where: (W) -> PredicateSpec = { PredicateSpec.empty },
2525
private val dsl: CriteriaQueryDsl<*>.() -> Unit = {}
2626
) where V : DataEntity<V>, CV : Comparable<CV> {
2727
private val logger = LoggerFactory.getLogger(this::class.java)

0 commit comments

Comments
 (0)