PMT-16: Add Method to Check if Project with Name Exists to ProjectRepository

This commit is contained in:
Rajbir Singh 2024-10-07 15:55:53 +02:00 committed by Git Euph
parent 90125b7b14
commit f8c802b187

View file

@ -3,4 +3,5 @@ package de.hmmh.pmt.db;
import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.JpaRepository;
public interface ProjectRepository extends JpaRepository<Project, Long> { public interface ProjectRepository extends JpaRepository<Project, Long> {
boolean existsByName(String name);
} }