Skip to content

Commit

Permalink
Merge pull request #101 from dongyeon1031/main
Browse files Browse the repository at this point in the history
fix: File 엔티티 JsonIgnore 어노테이션 추가
  • Loading branch information
0702Yoon authored Aug 15, 2024
2 parents 689c8fd + 36e399a commit 0fabf6c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import com.example.bigbrotherbe.domain.meetings.entity.Meetings;
import com.example.bigbrotherbe.domain.notice.entity.Notice;
import com.example.bigbrotherbe.domain.rule.entity.Rule;
import com.fasterxml.jackson.annotation.JsonIgnore;
import jakarta.persistence.*;
import lombok.*;
import org.checkerframework.checker.units.qual.A;
Expand All @@ -30,26 +31,32 @@ public class File extends BaseTimeEntity {

@ManyToOne(fetch = FetchType.EAGER)
@JoinColumn(name = "meetings_id")
@JsonIgnore
private Meetings meetings;

@ManyToOne(fetch = FetchType.EAGER)
@JoinColumn(name = "faq_id")
@JsonIgnore
private FAQ faq;

@ManyToOne(fetch = FetchType.EAGER)
@JoinColumn(name = "notice_id")
@JsonIgnore
private Notice notice;

@ManyToOne(fetch = FetchType.EAGER)
@JoinColumn(name = "event_id")
@JsonIgnore
private Event event;

@ManyToOne(fetch = FetchType.EAGER)
@JoinColumn(name = "rule_id")
@JsonIgnore
private Rule rule;

@ManyToOne(fetch = FetchType.EAGER)
@JoinColumn(name = "campus_notice_id")
@JsonIgnore
private CampusNotice campusNotice;


Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/application-local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ spring:

jpa:
hibernate:
ddl-auto: create-drop
ddl-auto: update
properties:
hibernate:
format_sql: true
Expand Down

0 comments on commit 0fabf6c

Please sign in to comment.