Skip to content

Commit

Permalink
#199 refactor: chatRoomIdx 타입 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
psyeon1120 committed Apr 12, 2023
1 parent 0f327a4 commit 3699c70
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
public class ChatRoom extends BaseEntity {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long chatRoomIdx;
private String chatRoomIdx;

@ManyToOne
@JoinColumn(nullable = false, name = "storeUserIdx")
Expand All @@ -35,7 +35,7 @@ public class ChatRoom extends BaseEntity {
public static ChatRoom create(User store, User user){
ChatRoom room = new ChatRoom();

room.chatRoomIdx = Long.valueOf(UUID.randomUUID().toString());
room.chatRoomIdx = UUID.randomUUID().toString();
room.store = store;
room.user = user;
return room;
Expand Down

0 comments on commit 3699c70

Please sign in to comment.