From aa35f8a5ab0fbf0ae7352d89f82049c3be6410e1 Mon Sep 17 00:00:00 2001 From: Rajbir Singh Date: Mon, 7 Oct 2024 15:55:53 +0200 Subject: [PATCH] PMT-16: Add Method to Check if Project with Name Exists to ProjectRepository --- src/main/java/de/hmmh/pmt/db/ProjectRepository.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/de/hmmh/pmt/db/ProjectRepository.java b/src/main/java/de/hmmh/pmt/db/ProjectRepository.java index ef501dc..bb02ece 100644 --- a/src/main/java/de/hmmh/pmt/db/ProjectRepository.java +++ b/src/main/java/de/hmmh/pmt/db/ProjectRepository.java @@ -3,4 +3,5 @@ package de.hmmh.pmt.db; import org.springframework.data.jpa.repository.JpaRepository; public interface ProjectRepository extends JpaRepository { + boolean existsByName(String name); }