Skip to content

Commit

Permalink
[feat] #109 room profile cascade 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
minwoo0419 committed Jun 9, 2024
1 parent 081c45d commit 96ced3b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/com/telepigeon/server/domain/Room.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.List;

@Entity
@Getter
Expand All @@ -24,6 +25,9 @@ public class Room {

private LocalDateTime createdAt;

@OneToMany(mappedBy="room", fetch=FetchType.LAZY)
private List<Profile> profiles;

@Builder
private Room(String name, String code, LocalDateTime createdAt) {
this.name = name;
Expand Down

0 comments on commit 96ced3b

Please sign in to comment.