-package de.juplo.kafka.chat.backend.persistence.storage.files;
+package de.juplo.kafka.chat.backend.storage.files;
import com.fasterxml.jackson.databind.ObjectMapper;
import de.juplo.kafka.chat.backend.ChatBackendProperties;
-package de.juplo.kafka.chat.backend.persistence.storage.files;
+package de.juplo.kafka.chat.backend.storage.files;
import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.databind.JavaType;
-package de.juplo.kafka.chat.backend.persistence.storage.files;
+package de.juplo.kafka.chat.backend.storage.files;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.core.JsonToken;
-package de.juplo.kafka.chat.backend.persistence.storage.mongodb;
+package de.juplo.kafka.chat.backend.storage.mongodb;
import org.springframework.data.mongodb.repository.MongoRepository;
-package de.juplo.kafka.chat.backend.persistence.storage.mongodb;
+package de.juplo.kafka.chat.backend.storage.mongodb;
import de.juplo.kafka.chat.backend.domain.ChatRoomInfo;
import lombok.*;
-package de.juplo.kafka.chat.backend.persistence.storage.mongodb;
+package de.juplo.kafka.chat.backend.storage.mongodb;
import org.springframework.data.mongodb.repository.MongoRepository;
-package de.juplo.kafka.chat.backend.persistence.storage.mongodb;
+package de.juplo.kafka.chat.backend.storage.mongodb;
import de.juplo.kafka.chat.backend.domain.Message;
import lombok.*;
-package de.juplo.kafka.chat.backend.persistence.storage.mongodb;
+package de.juplo.kafka.chat.backend.storage.mongodb;
import de.juplo.kafka.chat.backend.persistence.ShardingStrategy;
import de.juplo.kafka.chat.backend.persistence.StorageStrategy;
-package de.juplo.kafka.chat.backend.persistence.storage.mongodb;
+package de.juplo.kafka.chat.backend.storage.mongodb;
import de.juplo.kafka.chat.backend.domain.ChatRoomInfo;
import de.juplo.kafka.chat.backend.domain.Message;
-package de.juplo.kafka.chat.backend.persistence.storage.nostorage;
+package de.juplo.kafka.chat.backend.storage.nostorage;
import de.juplo.kafka.chat.backend.domain.ChatRoomInfo;
import de.juplo.kafka.chat.backend.domain.Message;
-package de.juplo.kafka.chat.backend.persistence;
+package de.juplo.kafka.chat.backend;
import de.juplo.kafka.chat.backend.domain.ChatHomeService;
import de.juplo.kafka.chat.backend.persistence.inmemory.SimpleChatHomeService;
-package de.juplo.kafka.chat.backend.persistence;
+package de.juplo.kafka.chat.backend;
import de.juplo.kafka.chat.backend.domain.*;
+import de.juplo.kafka.chat.backend.persistence.StorageStrategy;
import lombok.extern.slf4j.Slf4j;
import org.junit.jupiter.api.Test;
-package de.juplo.kafka.chat.backend.persistence;
+package de.juplo.kafka.chat.backend;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.SerializationFeature;
import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule;
-import de.juplo.kafka.chat.backend.persistence.storage.files.FilesStorageStrategy;
+import de.juplo.kafka.chat.backend.persistence.StorageStrategy;
+import de.juplo.kafka.chat.backend.storage.files.FilesStorageStrategy;
import lombok.extern.slf4j.Slf4j;
import org.junit.jupiter.api.BeforeEach;
-package de.juplo.kafka.chat.backend.persistence;
+package de.juplo.kafka.chat.backend;
-import de.juplo.kafka.chat.backend.persistence.InMemoryWithMongoDbStorageIT.DataSourceInitializer;
-import de.juplo.kafka.chat.backend.persistence.storage.mongodb.ChatRoomRepository;
-import de.juplo.kafka.chat.backend.persistence.storage.mongodb.MessageRepository;
-import de.juplo.kafka.chat.backend.persistence.storage.mongodb.MongoDbStorageStrategy;
+import de.juplo.kafka.chat.backend.InMemoryWithMongoDbStorageIT.DataSourceInitializer;
+import de.juplo.kafka.chat.backend.persistence.StorageStrategy;
+import de.juplo.kafka.chat.backend.storage.mongodb.ChatRoomRepository;
+import de.juplo.kafka.chat.backend.storage.mongodb.MessageRepository;
+import de.juplo.kafka.chat.backend.storage.mongodb.MongoDbStorageStrategy;
import lombok.extern.slf4j.Slf4j;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.extension.ExtendWith;
import de.juplo.kafka.chat.backend.domain.ChatHomeServiceWithShardsTest;
import de.juplo.kafka.chat.backend.persistence.ShardingStrategy;
import de.juplo.kafka.chat.backend.persistence.StorageStrategy;
-import de.juplo.kafka.chat.backend.persistence.storage.files.FilesStorageStrategy;
+import de.juplo.kafka.chat.backend.storage.files.FilesStorageStrategy;
import org.springframework.boot.test.context.TestConfiguration;
import org.springframework.context.annotation.Bean;
import com.fasterxml.jackson.databind.ObjectMapper;
import de.juplo.kafka.chat.backend.domain.ChatHomeServiceTest;
import de.juplo.kafka.chat.backend.persistence.StorageStrategy;
-import de.juplo.kafka.chat.backend.persistence.storage.files.FilesStorageStrategy;
+import de.juplo.kafka.chat.backend.storage.files.FilesStorageStrategy;
import org.springframework.boot.test.context.TestConfiguration;
import org.springframework.context.annotation.Bean;
"_id": "5c73531c-6fc4-426c-adcb-afc5c140a0f7",
"shard": 0,
"name": "FOO",
- "_class": "de.juplo.kafka.chat.backend.persistence.storage.mongodb.ChatRoomTo"
+ "_class": "de.juplo.kafka.chat.backend.storage.mongodb.ChatRoomTo"
}
"serial": 0,
"time": "2023-01-13T20:43:16.803382151",
"text": "Hallo, ich heiße Peter!",
- "_class": "de.juplo.kafka.chat.backend.persistence.storage.mongodb.MessageTo"
+ "_class": "de.juplo.kafka.chat.backend.storage.mongodb.MessageTo"
}
{
"_id": "64f7952cecf06d750cad4b9d",
"serial": 1,
"time": "2023-01-13T20:43:16.804049969",
"text": "Ich bin Ute...",
- "_class": "de.juplo.kafka.chat.backend.persistence.storage.mongodb.MessageTo"
+ "_class": "de.juplo.kafka.chat.backend.storage.mongodb.MessageTo"
}
{
"_id": "64f7952cecf06d750cad4b9e",
"serial": 2,
"time": "2023-01-13T20:43:16.804092782",
"text": "Willst du mit mir gehen?",
- "_class": "de.juplo.kafka.chat.backend.persistence.storage.mongodb.MessageTo"
+ "_class": "de.juplo.kafka.chat.backend.storage.mongodb.MessageTo"
}
{
"_id": "64f7953ddf7a9063e0b1f7dc",
"serial": 3,
"time": "2023-01-13T20:43:16.804122604",
"text": "Ja? Nein? Vielleicht??",
- "_class": "de.juplo.kafka.chat.backend.persistence.storage.mongodb.MessageTo"
+ "_class": "de.juplo.kafka.chat.backend.storage.mongodb.MessageTo"
}