From b5f0d191bdd1190f6872fd8d230ce4673386b18a Mon Sep 17 00:00:00 2001 From: khsrla9806 Date: Fri, 15 Sep 2023 19:39:14 +0900 Subject: [PATCH] =?UTF-8?q?Modify:=20=EA=B0=9C=EB=B0=9C,=20=EC=9A=B4?= =?UTF-8?q?=EC=98=81,=20=ED=85=8C=EC=8A=A4=ED=8A=B8=20=ED=99=98=EA=B2=BD?= =?UTF-8?q?=20=EB=B6=84=EB=A6=AC=20(#17)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 2 ++ src/main/java/com/livable/server/entity/Menu.java | 2 +- src/main/resources/application.yml | 7 +++++++ src/test/resources/application.yml | 8 ++++++++ 4 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 src/test/resources/application.yml diff --git a/.gitignore b/.gitignore index c2065bc2..34047078 100644 --- a/.gitignore +++ b/.gitignore @@ -25,6 +25,8 @@ bin/ out/ !**/src/main/**/out/ !**/src/test/**/out/ +application-dev.yml +application-prod.yml ### NetBeans ### /nbproject/private/ diff --git a/src/main/java/com/livable/server/entity/Menu.java b/src/main/java/com/livable/server/entity/Menu.java index 24ae90f8..baa1c61a 100644 --- a/src/main/java/com/livable/server/entity/Menu.java +++ b/src/main/java/com/livable/server/entity/Menu.java @@ -22,6 +22,6 @@ public class Menu extends BaseTimeEntity { @Column(nullable = false, unique = true) private String name; - @Column(nullable = false) + @Column(nullable = false, length = 1000) private String representativeImageUrl; } diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index e69de29b..35663b09 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -0,0 +1,7 @@ +spring: + profiles: + default: dev + jpa: + properties: + hibernate: + default_batch_fetch_size: 100 \ No newline at end of file diff --git a/src/test/resources/application.yml b/src/test/resources/application.yml new file mode 100644 index 00000000..3a0d2226 --- /dev/null +++ b/src/test/resources/application.yml @@ -0,0 +1,8 @@ +spring: + jpa: + hibernate: + ddl-auto: create-drop + properties: + hibernate: + show_sql: true + format_sql: true \ No newline at end of file