From 264595ca58774a9239b32b3a071224dc4826b11e 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); }