Skip to content

Commit

Permalink
[BUG] 회원 탈퇴 API 오류 (#151)
Browse files Browse the repository at this point in the history
fix: 회원 탈퇴 API 오류 (#150)
  • Loading branch information
hyunmin0317 authored Jan 11, 2025
1 parent e1b894a commit 8c3b77e
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.smunity.server.global.common.entity;

import com.smunity.server.domain.account.entity.LoginStatus;
import com.smunity.server.domain.answer.entity.Answer;
import com.smunity.server.domain.course.entity.Course;
import com.smunity.server.domain.question.entity.Question;
Expand Down Expand Up @@ -60,6 +61,9 @@ public class Member extends BaseEntity {
@OneToMany(mappedBy = "member", cascade = CascadeType.ALL, orphanRemoval = true)
private final List<Answer> answers = new ArrayList<>();

@OneToMany(mappedBy = "member", cascade = CascadeType.ALL, orphanRemoval = true)
private final List<LoginStatus> loginStatuses = new ArrayList<>();

public void setDepartment(Department department) {
this.department = department;
department.getMembers().add(this);
Expand Down

0 comments on commit 8c3b77e

Please sign in to comment.