From 268adf16e63ec3ee5c7d5f7fc5fc86722a945958 Mon Sep 17 00:00:00 2001 From: enbraining Date: Fri, 29 Dec 2023 12:06:20 +0900 Subject: [PATCH] consulting EAGER --- .../java/com/gapple/weeingback/domain/member/entity/Member.java | 2 +- src/main/resources/application.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/gapple/weeingback/domain/member/entity/Member.java b/src/main/java/com/gapple/weeingback/domain/member/entity/Member.java index 9b20c0c..03b3dc8 100644 --- a/src/main/java/com/gapple/weeingback/domain/member/entity/Member.java +++ b/src/main/java/com/gapple/weeingback/domain/member/entity/Member.java @@ -39,7 +39,7 @@ public class Member implements GrantedAuthority { @Column(columnDefinition = "VARCHAR(80)", nullable = false) private String role; - @OneToMany() + @OneToMany(fetch = FetchType.EAGER) @JoinColumn(name = "consulting_id") private List consulting; diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index 62a1135..2bf749a 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -33,7 +33,7 @@ spring: open-in-view: false hibernate: dialect: org.hibernate.dialect.PostgreSQLDialect - ddl-auto: update + ddl-auto: create-drop properties: hibernate:format_sql: true show-sql: true