From 45ccf821f36f4fe49524c4e3a68361f173e7ad70 Mon Sep 17 00:00:00 2001 From: yeobi Date: Mon, 30 Dec 2024 15:29:33 +0900 Subject: [PATCH 1/3] =?UTF-8?q?[Fix]=20Dutch=20data=20=EC=A4=91=EB=B3=B5?= =?UTF-8?q?=20=EC=A0=80=EC=9E=A5=20=ED=97=88=EC=9A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/Dodutch_Server/domain/dutch/service/DutchService.java | 2 -- src/main/resources/application.yml | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/main/java/com/Dodutch_Server/domain/dutch/service/DutchService.java b/src/main/java/com/Dodutch_Server/domain/dutch/service/DutchService.java index 61fb7f7..045b0d0 100644 --- a/src/main/java/com/Dodutch_Server/domain/dutch/service/DutchService.java +++ b/src/main/java/com/Dodutch_Server/domain/dutch/service/DutchService.java @@ -129,8 +129,6 @@ public List calculateSettlement(Long tripId) { @Transactional public void saveSettlementToDatabase(Long tripId, List dutchDTOs) { - // 여행 프로젝트의 기존 정산 내역 삭제 - dutchRepository.deleteByTripId(tripId); Trip trip = tripRepository.findById(tripId) .orElseThrow(() -> new IllegalArgumentException("TripId not found")); diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index d6ac679..5a9ea9a 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -8,7 +8,7 @@ spring: jpa: database-platform: org.hibernate.dialect.MySQL8Dialect hibernate: - ddl-auto: update + ddl-auto: create show-sql: true properties: hibernate: From 63ee22ead1308176736727e64be689f25a06e0fd Mon Sep 17 00:00:00 2001 From: yeobi Date: Mon, 30 Dec 2024 15:38:15 +0900 Subject: [PATCH 2/3] =?UTF-8?q?[Fix]=20application.yml=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/application.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index 5a9ea9a..d6ac679 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -8,7 +8,7 @@ spring: jpa: database-platform: org.hibernate.dialect.MySQL8Dialect hibernate: - ddl-auto: create + ddl-auto: update show-sql: true properties: hibernate: From 8cea18ddc3f36de180e475b77b6d1e8042c8d3f6 Mon Sep 17 00:00:00 2001 From: yeobi Date: Mon, 30 Dec 2024 16:16:22 +0900 Subject: [PATCH 3/3] =?UTF-8?q?[Fix]=20Transactional=20=EC=B7=A8=EC=86=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/Dodutch_Server/domain/dutch/service/DutchService.java | 1 - 1 file changed, 1 deletion(-) diff --git a/src/main/java/com/Dodutch_Server/domain/dutch/service/DutchService.java b/src/main/java/com/Dodutch_Server/domain/dutch/service/DutchService.java index 045b0d0..62b34fe 100644 --- a/src/main/java/com/Dodutch_Server/domain/dutch/service/DutchService.java +++ b/src/main/java/com/Dodutch_Server/domain/dutch/service/DutchService.java @@ -127,7 +127,6 @@ public List calculateSettlement(Long tripId) { return dutchDTOs; } - @Transactional public void saveSettlementToDatabase(Long tripId, List dutchDTOs) { Trip trip = tripRepository.findById(tripId)