From: Kai Moritz Date: Thu, 20 Apr 2023 12:27:25 +0000 (+0200) Subject: NEU X-Git-Tag: rebase--2023-08-18~13 X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=15f4408c37b37cebd3f75930181245eb8161e127;p=demos%2Fkafka%2Fchat NEU --- 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()); } }