From 65282cdcb261655fc76dd598108cfaf908748ee0 Mon Sep 17 00:00:00 2001 From: s-choi Date: Tue, 29 Sep 2026 09:43:45 +0900 Subject: [PATCH 1/5] =?UTF-8?q?[FIX]=20=E3=82=AB=E3=83=A9=E3=83=A0?= =?UTF-8?q?=E3=81=AE=E6=96=87=E5=AD=97=E6=95=B0=E3=82=92=E5=88=B6=E9=99=90?= =?UTF-8?q?=E3=81=97=E3=81=BE=E3=81=97=E3=81=9F=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/example/demo/app/infra/entity/CategoryEntity.java | 2 +- .../java/com/example/demo/app/infra/entity/CourseEntity.java | 2 +- .../com/example/demo/app/infra/entity/FixedCostEntity.java | 2 +- .../java/com/example/demo/app/infra/entity/UserEntity.java | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/example/demo/app/infra/entity/CategoryEntity.java b/src/main/java/com/example/demo/app/infra/entity/CategoryEntity.java index 17d3ca7..c7568a9 100644 --- a/src/main/java/com/example/demo/app/infra/entity/CategoryEntity.java +++ b/src/main/java/com/example/demo/app/infra/entity/CategoryEntity.java @@ -29,7 +29,7 @@ public class CategoryEntity { @Column(name = "category_id") private Long categoryId; - @Column(name = "category_name", nullable = false) + @Column(name = "category_name", nullable = false, length = 50) private String categoryName; @Column(name = "transaction_type", nullable = false) diff --git a/src/main/java/com/example/demo/app/infra/entity/CourseEntity.java b/src/main/java/com/example/demo/app/infra/entity/CourseEntity.java index 56cb01e..e93b26b 100644 --- a/src/main/java/com/example/demo/app/infra/entity/CourseEntity.java +++ b/src/main/java/com/example/demo/app/infra/entity/CourseEntity.java @@ -27,7 +27,7 @@ public class CourseEntity { @Column(name = "course_id") private Long courseId; - @Column(name = "course_name", nullable = false) + @Column(name = "course_name", nullable = false, length = 50) private String courseName; diff --git a/src/main/java/com/example/demo/app/infra/entity/FixedCostEntity.java b/src/main/java/com/example/demo/app/infra/entity/FixedCostEntity.java index ef131b2..99dadd6 100644 --- a/src/main/java/com/example/demo/app/infra/entity/FixedCostEntity.java +++ b/src/main/java/com/example/demo/app/infra/entity/FixedCostEntity.java @@ -34,7 +34,7 @@ public class FixedCostEntity { @JoinColumn(name = "category_id") private CategoryEntity categoryEntity; - @Column(name = "fixed_cost_name", nullable = false) + @Column(name = "fixed_cost_name", nullable = false, length = 50) private String fixedCostName; @Column(name = "amount", nullable = false) diff --git a/src/main/java/com/example/demo/app/infra/entity/UserEntity.java b/src/main/java/com/example/demo/app/infra/entity/UserEntity.java index f6d52fd..3d86259 100644 --- a/src/main/java/com/example/demo/app/infra/entity/UserEntity.java +++ b/src/main/java/com/example/demo/app/infra/entity/UserEntity.java @@ -30,7 +30,7 @@ public class UserEntity { @Column(name = "user_id") private Long userId; - @Column(name = "user_name", nullable = false) + @Column(name = "user_name", nullable = false, length = 100) private String userName; @Column(name = "mail_address", nullable = false) @@ -39,7 +39,7 @@ public class UserEntity { @Column(name = "password", nullable = false) private String password; - @Column(name = "secret_answer", nullable = false) + @Column(name = "secret_answer", nullable = false, length = 100) private String secretQuestionAnswer; @Column(name = "birth_date", nullable = false) From b09fd95c31beca3e76ddfdcf3ba8e460fadcbd06 Mon Sep 17 00:00:00 2001 From: s-choi Date: Tue, 29 Sep 2026 09:44:18 +0900 Subject: [PATCH 2/5] =?UTF-8?q?[FIX]=20Default=E5=80=A4=E8=A8=AD=E5=AE=9A?= =?UTF-8?q?=E5=8F=8A=E3=81=B3=E5=BF=85=E8=A6=81=E3=81=AA=E3=81=84=E3=82=AB?= =?UTF-8?q?=E3=83=A9=E3=83=A0=E3=82=92=E5=89=8A=E9=99=A4=E3=81=97=E3=81=BE?= =?UTF-8?q?=E3=81=97=E3=81=9F=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/example/demo/app/domain/model/GoalModel.java | 2 +- .../java/com/example/demo/app/infra/entity/GoalEntity.java | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/example/demo/app/domain/model/GoalModel.java b/src/main/java/com/example/demo/app/domain/model/GoalModel.java index b5a7214..aeddc68 100644 --- a/src/main/java/com/example/demo/app/domain/model/GoalModel.java +++ b/src/main/java/com/example/demo/app/domain/model/GoalModel.java @@ -57,7 +57,7 @@ public class GoalModel { goalModel.getTargetAmount(), goalModel.getDeadline(), 0, - userEntity, 0); + userEntity); } public static GoalModel convertFrom(GoalForm goalForm) { diff --git a/src/main/java/com/example/demo/app/infra/entity/GoalEntity.java b/src/main/java/com/example/demo/app/infra/entity/GoalEntity.java index a7bc3f4..44f044e 100644 --- a/src/main/java/com/example/demo/app/infra/entity/GoalEntity.java +++ b/src/main/java/com/example/demo/app/infra/entity/GoalEntity.java @@ -29,10 +29,10 @@ public class GoalEntity { private Long goalId; @Column(name = "goal_title", nullable = true) - private String goalTitle; + private String goalTitle = "名前を設定してください"; @Column(name = "goal_subtitle", nullable = true) - private String goalSubtitle; + private String goalSubtitle = "説明を書いてください"; @Column(name = "target_amount", nullable = true) private Integer targetAmount; @@ -46,7 +46,5 @@ public class GoalEntity { @ManyToOne(fetch = FetchType.LAZY) @JoinColumn(name = "user_id") private UserEntity userEntity; - - private Integer deleteFlag; } From 60e0694731b45bd285458a958da9bb4268067df4 Mon Sep 17 00:00:00 2001 From: s-choi Date: Tue, 29 Sep 2026 09:44:42 +0900 Subject: [PATCH 3/5] =?UTF-8?q?[FIX]=20=E4=BC=9A=E5=93=A1=E7=99=BB?= =?UTF-8?q?=E9=8C=B2=E3=81=AE=E6=AE=B5=E9=9A=8E=E3=81=A7=E7=9B=AE=E6=A8=99?= =?UTF-8?q?=E3=81=8C=E7=99=BB=E9=8C=B2=E3=81=95=E3=82=8C=E3=82=8B=E3=82=88?= =?UTF-8?q?=E3=81=86=E3=81=AB=E4=BF=AE=E6=AD=A3=E3=81=97=E3=81=BE=E3=81=97?= =?UTF-8?q?=E3=81=9F=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../demo/app/domain/service/impl/UserServiceImpl.java | 6 +++--- src/main/resources/templates/user_register_return.html | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/example/demo/app/domain/service/impl/UserServiceImpl.java b/src/main/java/com/example/demo/app/domain/service/impl/UserServiceImpl.java index 20b862e..d0ee588 100644 --- a/src/main/java/com/example/demo/app/domain/service/impl/UserServiceImpl.java +++ b/src/main/java/com/example/demo/app/domain/service/impl/UserServiceImpl.java @@ -53,13 +53,13 @@ public class UserServiceImpl implements UserService { userEntity.setQuestionEntity(questionEntity); - - userEntity.setCourseEntity(courseEntity); userEntity.setDeleteFlag(0); - userRepository.save(userEntity); + goalEntity.setUserEntity(userRepository.save(userEntity)); + + goalRepository.save(goalEntity); } @Override diff --git a/src/main/resources/templates/user_register_return.html b/src/main/resources/templates/user_register_return.html index 93569ea..0d4079e 100644 --- a/src/main/resources/templates/user_register_return.html +++ b/src/main/resources/templates/user_register_return.html @@ -80,7 +80,7 @@
- +
From f1e48b02f9461687c6e769b86f21cfbe1f8fd23c Mon Sep 17 00:00:00 2001 From: s-choi Date: Tue, 29 Sep 2026 10:03:24 +0900 Subject: [PATCH 4/5] =?UTF-8?q?[STYLE]=20padding-top=20=E3=82=92=E8=AA=BF?= =?UTF-8?q?=E6=95=B4=E3=81=97=E3=81=BE=E3=81=97=E3=81=9F=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/templates/select_course.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/resources/templates/select_course.html b/src/main/resources/templates/select_course.html index b3ed7fa..635e154 100644 --- a/src/main/resources/templates/select_course.html +++ b/src/main/resources/templates/select_course.html @@ -8,7 +8,7 @@ コース選択 - +

コース選択

From aad285f9bad1d407fb32f985aaef2a7c3a7f798d Mon Sep 17 00:00:00 2001 From: s-choi Date: Tue, 29 Sep 2026 10:21:59 +0900 Subject: [PATCH 5/5] =?UTF-8?q?[HOTFIX]=20AOP=E3=81=AE=E4=BE=8B=E5=A4=96?= =?UTF-8?q?=E5=87=A6=E7=90=86=E3=82=92=E4=BF=AE=E6=AD=A3=E3=81=97=E3=81=BE?= =?UTF-8?q?=E3=81=97=E3=81=9F=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../aop/handler/GlobalExceptionHandler.java | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/example/demo/aop/handler/GlobalExceptionHandler.java b/src/main/java/com/example/demo/aop/handler/GlobalExceptionHandler.java index 830c07b..9b569ae 100644 --- a/src/main/java/com/example/demo/aop/handler/GlobalExceptionHandler.java +++ b/src/main/java/com/example/demo/aop/handler/GlobalExceptionHandler.java @@ -11,6 +11,7 @@ import org.springframework.ui.Model; import org.springframework.web.HttpRequestMethodNotSupportedException; import org.springframework.web.bind.annotation.ControllerAdvice; import org.springframework.web.bind.annotation.ExceptionHandler; +import org.springframework.web.servlet.resource.NoResourceFoundException; import com.example.demo.exception.NoSessionException; @@ -53,16 +54,26 @@ public class GlobalExceptionHandler { return "error"; } - @ExceptionHandler(Exception.class) - public String AllException(Model model, Exception e, HttpSession session) { + @ExceptionHandler(NoResourceFoundException.class) + public void noResourceException(Model model, Exception e, HttpSession session) { model.addAttribute("error", SEVERE_ERROR_MESSAGE_BAD_REQUEST); - + e.printStackTrace(); LOGGER.log(Level.SEVERE, SEVERE_ERROR_MESSAGE_ILLEGAL_TRANSITION, e); - + System.out.println("session invalidated"); session.invalidate(); + + } + + @ExceptionHandler(Exception.class) + public String AllException(Model model, Exception e, HttpSession session) { + + e.printStackTrace(); + + + System.out.println(" .well-known/appspecific/com.chrome.devtools.json for request error"); return "error"; }