mirror of
https://github.com/corda/corda.git
synced 2025-01-18 18:56:28 +00:00
Merge pull request #7495 from corda/merge-release/os/4.10-release/os/4.11-2023-09-08-3
ENT-10756 Merging release/os/4.10 to release/os/4.11
This commit is contained in:
commit
a90e0b4cfb
@ -787,7 +787,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…
Reference in New Issue
Block a user