WIP
authorKai Moritz <kai@juplo.de>
Mon, 9 Jan 2023 22:32:09 +0000 (23:32 +0100)
committerKai Moritz <kai@juplo.de>
Mon, 9 Jan 2023 22:32:09 +0000 (23:32 +0100)
src/main/java/de/juplo/kafka/chat/backend/persistence/storage/mongodb/ChatHomeRepository.java [new file with mode: 0644]
src/main/java/de/juplo/kafka/chat/backend/persistence/storage/mongodb/MongoDbStorageService.java [deleted file]

diff --git a/src/main/java/de/juplo/kafka/chat/backend/persistence/storage/mongodb/ChatHomeRepository.java b/src/main/java/de/juplo/kafka/chat/backend/persistence/storage/mongodb/ChatHomeRepository.java
new file mode 100644 (file)
index 0000000..cc038c1
--- /dev/null
@@ -0,0 +1,11 @@
+package de.juplo.kafka.chat.backend.persistence.storage.mongodb;
+
+import org.springframework.data.mongodb.repository.MongoRepository;
+
+import java.util.List;
+
+
+public interface ChatHomeRepository extends MongoRepository<ChatRoomTo, String>
+{
+  public List<ChatRoomTo> findAll();
+}
diff --git a/src/main/java/de/juplo/kafka/chat/backend/persistence/storage/mongodb/MongoDbStorageService.java b/src/main/java/de/juplo/kafka/chat/backend/persistence/storage/mongodb/MongoDbStorageService.java
deleted file mode 100644 (file)
index 1124eff..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-package de.juplo.kafka.chat.backend.persistence.storage.mongodb;
-
-public class MongoDbStorageService
-{
-}