NEU
authorKai Moritz <kai@juplo.de>
Thu, 20 Apr 2023 12:27:25 +0000 (14:27 +0200)
committerKai Moritz <kai@juplo.de>
Thu, 20 Apr 2023 12:27:25 +0000 (14:27 +0200)
src/main/java/de/juplo/kafka/chat/backend/persistence/kafka/ChatRoomTo.java

index 9c196b2..e564981 100644 (file)
@@ -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());
   }
 }