/* Ċ Ġ* ĠCopyright ĠD 3 ĠLed ger , ĠInc . ĠAll ĠRights ĠReserved . Ċ Ġ* ĠSPDX - License - Identifier : ĠApache - 2 . 0 Ċ Ġ*/ Ċ package Ġcom . d 3 . datac ol lect or . repository Ċ Ċ import Ġcom . d 3 . datac ol lect or . model . Set Account Detail Ċ import Ġorg . springframework . data . jpa . repository . Query Ċ import Ġorg . springframework . data . repository . Crud Repository Ċ Ċ interface ĠSet Account Detail Repo Ġ: ĠCr ud Repository < Set Account Detail , ĠLong ?> Ġ{ ĊĊĠĠĠ Ġ@ Query (" SELECT Ġd ĠFROM ĠSet Account Detail Ġd ĠWHERE Ġd . accountId Ġ= Ġ: accountId ") ĊĠĠĠ Ġfun ĠgetAll Details For AccountId ( accountId : ĠString ): ĠList < Set Account Detail > ĊĊĠĠĠ Ġ@ Query (" SELECT Ġd ĠFROM ĠSet Account Detail Ġd ĠWHERE Ġd . accountId =: accountId Ġand Ġd . detail Key =: detail Key Ġand Ġd . transaction . creator Id =: creator Id ") ĊĠĠĠ Ġfun Ġget Account Detail ( accountId : ĠString , Ġdetail Key : ĠString , Ġcreator Id : ĠString ): ĠSet Account Detail ? Ċ } Ċ