Skip to content

Commit

Permalink
[refactor] #157 add oneToMany
Browse files Browse the repository at this point in the history
  • Loading branch information
chaewonni committed Feb 3, 2025
1 parent bc2bea9 commit fc8dac3
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@
import lombok.NoArgsConstructor;
import org.kkumulkkum.server.domain.base.BaseTimeEntity;
import org.kkumulkkum.server.domain.meeting.Meeting;
import org.kkumulkkum.server.domain.participant.Participant;

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

@Entity
@Getter
Expand Down Expand Up @@ -44,6 +46,9 @@ public class Promise extends BaseTimeEntity {
@JoinColumn(name = "meeting_id")
private Meeting meeting;

@OneToMany(mappedBy = "promise")
private List<Participant> participants;

@Builder
public Promise(
String name,
Expand Down

0 comments on commit fc8dac3

Please sign in to comment.