Skip to content

Commit

Permalink
Refactor : ChatRoom 직렬화 코드 추가
Browse files Browse the repository at this point in the history
- JPA 의존성 추가
- ChatRoom 직렬화 추가
  • Loading branch information
HyemIin committed Jan 12, 2024
1 parent 1a13450 commit 1472ec0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
3 changes: 3 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,19 +1,23 @@
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
@Getter
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class ChatRoom {
public class ChatRoom implements Serializable {

@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
Expand Down

0 comments on commit 1472ec0

Please sign in to comment.