diff --git a/sth-backend/src/main/java/hdm/mi/sthbackend/SthBackendApplication.java b/sth-backend/src/main/java/hdm/mi/sthbackend/SthBackendApplication.java index 762e3e634b2eddaa10ed81422386e54e3feed58d..b3e3c0d65551166a8495acf8521bca0d561ce6b2 100644 --- a/sth-backend/src/main/java/hdm/mi/sthbackend/SthBackendApplication.java +++ b/sth-backend/src/main/java/hdm/mi/sthbackend/SthBackendApplication.java @@ -2,7 +2,9 @@ package hdm.mi.sthbackend; import hdm.mi.sthbackend.model.Match; import hdm.mi.sthbackend.model.Player; +import hdm.mi.sthbackend.repository.IMatchRepository; import hdm.mi.sthbackend.repository.IPlayerRepository; +import hdm.mi.sthbackend.repository.ITeamRepository; import hdm.mi.sthbackend.repository.ITournamentRepository; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.CommandLineRunner; @@ -25,6 +27,10 @@ public class SthBackendApplication { ITournamentRepository tournamentRepository; @Autowired IPlayerRepository playerRepository; + @Autowired + IMatchRepository matchRepository; + @Autowired + ITeamRepository teamRepository; public static void main(String[] args) { SpringApplication.run(SthBackendApplication.class, args); diff --git a/sth-backend/src/main/java/hdm/mi/sthbackend/repository/IMatchRepository.java b/sth-backend/src/main/java/hdm/mi/sthbackend/repository/IMatchRepository.java new file mode 100644 index 0000000000000000000000000000000000000000..9c7b2360b0a05ebe600ce979f411ce793b040731 --- /dev/null +++ b/sth-backend/src/main/java/hdm/mi/sthbackend/repository/IMatchRepository.java @@ -0,0 +1,9 @@ +package hdm.mi.sthbackend.repository; + +import hdm.mi.sthbackend.model.Match; +import org.springframework.data.mongodb.repository.MongoRepository; + +import java.util.UUID; + +public interface IMatchRepository extends MongoRepository<Match, UUID> { +} diff --git a/sth-backend/src/main/java/hdm/mi/sthbackend/repository/ITeamRepository.java b/sth-backend/src/main/java/hdm/mi/sthbackend/repository/ITeamRepository.java new file mode 100644 index 0000000000000000000000000000000000000000..e2bb9c3d526f8f8a9cdb06065fd23c914215184f --- /dev/null +++ b/sth-backend/src/main/java/hdm/mi/sthbackend/repository/ITeamRepository.java @@ -0,0 +1,9 @@ +package hdm.mi.sthbackend.repository; + +import hdm.mi.sthbackend.model.Team; +import org.springframework.data.mongodb.repository.MongoRepository; + +import java.util.UUID; + +public interface ITeamRepository extends MongoRepository<Team, UUID> { +}