Merge pull request #208 from Kitzanos/feature/GEPAFINBE-166

GEPAFINBE-166 (Linking the SystemEmailTemplate entity with the hub)
This commit is contained in:
Rinaldo
2025-02-11 09:46:24 +01:00
committed by GitHub
7 changed files with 126 additions and 81 deletions

View File

@@ -13,5 +13,8 @@ public interface SystemEmailTemplatesRespository extends JpaRepository<SystemEma
@Query("select s from SystemEmailTemplatesEntity s where s.type=:type and s.isDeleted =false and s.system = true")
SystemEmailTemplatesEntity findByType(@Param("type") String type);
@Query("select s from SystemEmailTemplatesEntity s where s.type=:type and s.hubEntity.id=:hubId and s.isDeleted =false and s.system = false")
SystemEmailTemplatesEntity findByTypeAndHubEntityId(@Param("type") String type, @Param("hubId") Long hubId);
}