From 15f4408c37b37cebd3f75930181245eb8161e127 Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Thu, 20 Apr 2023 14:27:25 +0200 Subject: [PATCH] NEU --- .../kafka/chat/backend/persistence/kafka/ChatRoomTo.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/de/juplo/kafka/chat/backend/persistence/kafka/ChatRoomTo.java b/src/main/java/de/juplo/kafka/chat/backend/persistence/kafka/ChatRoomTo.java index 9c196b27..e5649816 100644 --- a/src/main/java/de/juplo/kafka/chat/backend/persistence/kafka/ChatRoomTo.java +++ b/src/main/java/de/juplo/kafka/chat/backend/persistence/kafka/ChatRoomTo.java @@ -14,17 +14,17 @@ import java.util.UUID; @AllArgsConstructor(staticName = "of") public class ChatRoomTo { - private UUID id; + private String id; private String name; private int shard; public ChatRoomInfo toChatRoomInfo() { - return new ChatRoomInfo(id, name, shard); + return new ChatRoomInfo(UUID.fromString(id), name, shard); } public static ChatRoomTo from(ChatRoom chatRoom) { - return ChatRoomTo.of(chatRoom.getId(), chatRoom.getName(), chatRoom.getShard()); + return ChatRoomTo.of(chatRoom.getId().toString(), chatRoom.getName(), chatRoom.getShard()); } } -- 2.20.1