PMT-16: Add Method to Check if Project with Name Exists to ProjectRepository
This commit is contained in:
parent
4940da7b40
commit
e42f92d6f1
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue