Skip to content

Commit

Permalink
fix: 그룹, 그룹스케줄 연관관계 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
SangWoon123 committed May 19, 2024
1 parent 9c19506 commit 6fdc07c
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.tukorea.planding.domain.group.entity;

import com.tukorea.planding.domain.group.dto.request.GroupCreateRequest;
import com.tukorea.planding.domain.schedule.entity.GroupSchedule;
import com.tukorea.planding.domain.user.entity.User;
import com.tukorea.planding.global.audit.BaseEntity;
import com.tukorea.planding.domain.schedule.entity.Schedule;
Expand Down Expand Up @@ -36,8 +37,8 @@ public class GroupRoom extends BaseEntity {
@OneToMany(mappedBy = "groupRoom", cascade = CascadeType.ALL, orphanRemoval = true)
private final Set<UserGroup> userGroups = new HashSet<>();

// @OneToMany(mappedBy = "groupRoom", cascade = CascadeType.ALL, orphanRemoval = true)
// private final List<Schedule> schedules = new ArrayList<>();
@OneToMany(mappedBy = "groupRoom", cascade = CascadeType.ALL, orphanRemoval = true)
private final List<GroupSchedule> groupSchedules = new ArrayList<>();

@OneToMany(mappedBy = "groupRoom", cascade = CascadeType.ALL, orphanRemoval = true)
private final List<GroupFavorite> groupFavorites = new ArrayList<>();
Expand Down

0 comments on commit 6fdc07c

Please sign in to comment.