FINERACT-2488: Fix duplicate results in /api/v2/clients/search (#5485)

This commit is contained in:
Ralph Hopman
2026-02-14 13:05:13 -06:00
committed by GitHub
parent 176d510384
commit 4bb5c02b19
2 changed files with 32 additions and 0 deletions
@@ -67,6 +67,7 @@ public class SearchingClientRepositoryImpl implements SearchingClientRepository
Path<Office> office = root.get("office");
Specification<Client> spec = (r, q, builder) -> {
q.distinct(true);
Path<Office> o = r.get("office");
Join<Client, ClientIdentifier> identity = r.join("identifiers", JoinType.LEFT);