From 5ea88cc0dabb49984b548db0b6e3aa02e904e686 Mon Sep 17 00:00:00 2001 From: FedericoRuzzier <49512050+FedericoRuzzier@users.noreply.github.com> Date: Tue, 28 May 2024 10:03:39 +0200 Subject: [PATCH] PAGOPA-1783 reinserting method for old api --- .../apiconfig/starter/repository/IbanMasterRepository.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main/java/it/gov/pagopa/apiconfig/starter/repository/IbanMasterRepository.java b/src/main/java/it/gov/pagopa/apiconfig/starter/repository/IbanMasterRepository.java index 05c2938..f2e4341 100644 --- a/src/main/java/it/gov/pagopa/apiconfig/starter/repository/IbanMasterRepository.java +++ b/src/main/java/it/gov/pagopa/apiconfig/starter/repository/IbanMasterRepository.java @@ -26,6 +26,13 @@ public interface IbanMasterRepository extends JpaRepository { void deleteByIds(List ids); + @Query("select master from IbanMaster master, IbanAttributeMaster attribute, IbanAttribute label " + + "where master.objId = attribute.fkIbanMaster " + + "and attribute.fkAttribute = label.objId " + + "and master.fkPa=?1 " + + "and attribute.ibanAttribute.attributeName=?2") + List findByFkPaAndLabel(Long fkPa, String label); + @Query("select master from IbanMaster master, IbanAttributeMaster attribute, IbanAttribute label " + "where master.objId = attribute.fkIbanMaster " + "and attribute.fkAttribute = label.objId " +