We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9dfa2cb commit 3321f1cCopy full SHA for 3321f1c
src/main/java/com/faforever/api/clan/ClanRepository.java
@@ -3,11 +3,14 @@
3
import com.faforever.api.data.domain.Clan;
4
import org.springframework.data.jpa.repository.JpaRepository;
5
import org.springframework.stereotype.Repository;
6
+import org.springframework.transaction.annotation.Transactional;
7
8
import java.util.Optional;
9
10
@Repository
11
public interface ClanRepository extends JpaRepository<Clan, Integer> {
12
+
13
+ @Transactional
14
Optional<Clan> findOneByName(String name);
15
16
Optional<Clan> findOneByTag(String tag);
0 commit comments