mirror of
https://github.com/corda/corda.git
synced 2025-01-30 16:14:39 +00:00
Merging forward updates from release/os/4.9 to release/os/4.10 - 2023-09-08
This commit is contained in:
commit
17f5cd5524
@ -771,7 +771,7 @@ class NodeVaultService(
|
||||
|
||||
private fun <T : ContractState> queryTotalStateCount(criteria: QueryCriteria, contractStateType: Class<out T>): Long {
|
||||
val (criteriaQuery, criteriaParser) = buildCriteriaQuery<Long>(criteria, contractStateType, null)
|
||||
criteriaQuery.select(criteriaBuilder.countDistinct(criteriaParser.vaultStates))
|
||||
criteriaQuery.select(criteriaBuilder.count(criteriaParser.vaultStates))
|
||||
val query = getSession().createQuery(criteriaQuery)
|
||||
return query.singleResult
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user