diff --git a/build.gradle b/build.gradle index 32e7a50..3cb77c3 100644 --- a/build.gradle +++ b/build.gradle @@ -51,6 +51,9 @@ dependencies { implementation 'mysql:mysql-connector-java:8.0.32' runtimeOnly 'com.mysql:mysql-connector-j' + //jpa + implementation 'org.springframework.boot:spring-boot-starter-data-jpa' + implementation 'org.webjars.bower:bootstrap:4.3.1' implementation 'org.webjars.bower:vue:2.5.16' diff --git a/src/main/java/com/catchroom/chat/chatroom/entity/ChatRoom.java b/src/main/java/com/catchroom/chat/chatroom/entity/ChatRoom.java index a69e62e..a429994 100644 --- a/src/main/java/com/catchroom/chat/chatroom/entity/ChatRoom.java +++ b/src/main/java/com/catchroom/chat/chatroom/entity/ChatRoom.java @@ -1,11 +1,15 @@ package com.catchroom.chat.chatroom.entity; -import jakarta.persistence.*; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Getter; import lombok.NoArgsConstructor; +import java.io.Serializable; import java.util.UUID; @Entity @@ -13,7 +17,7 @@ @AllArgsConstructor @NoArgsConstructor @Builder -public class ChatRoom { +public class ChatRoom implements Serializable { @Id @GeneratedValue(strategy = GenerationType.IDENTITY)