From df9986361f4be3a3f26cb52bd0606295fc0ecf0d Mon Sep 17 00:00:00 2001 From: Peter Hormanns Date: Mon, 13 Sep 2021 17:45:50 +0200 Subject: [PATCH] use mandatRef as additional query param to find unique result --- .../java/de/hsadmin/service/customer/SEPADirectDebitService.java | 1 + 1 file changed, 1 insertion(+) diff --git a/cust-services/src/main/java/de/hsadmin/service/customer/SEPADirectDebitService.java b/cust-services/src/main/java/de/hsadmin/service/customer/SEPADirectDebitService.java index ae5525b..6b1ad3c 100644 --- a/cust-services/src/main/java/de/hsadmin/service/customer/SEPADirectDebitService.java +++ b/cust-services/src/main/java/de/hsadmin/service/customer/SEPADirectDebitService.java @@ -92,6 +92,7 @@ public class SEPADirectDebitService extends AbstractModule im query.setParameter("bankIBAN", prototype.get("bankIBAN").getValue()); query.setParameter("bankBIC", prototype.get("bankBIC").getValue()); query.setParameter("customer", prototype.get("customer").getValue()); + query.setParameter("mandatRef", prototype.get("mandatRef").getValue()); query.setParameter("mandatSigned", prototype.get("mandatSigned").getValue()); return (SEPADirectDebit) query.getSingleResult(); }