From 3cd5dd029e637f7be7a513d694979101c0501e4f Mon Sep 17 00:00:00 2001 From: Jinil Sung Date: Wed, 20 Dec 2023 11:05:24 -0800 Subject: [PATCH] GRAD2-2430: bug fix on LocalDateTime compatible with native query. GRAD2-2430: bug fix on LocalDateTime compatible with native query. --- .../entity/BatchJobExecutionContextEntity.java | 2 +- .../BatchStepExecutionContextEntity.java | 2 +- .../entity/BatchStepExecutionEntity.java | 2 +- .../BatchJobExecutionRepository.java | 18 +++++++----------- .../BatchStepExecutionRepository.java | 13 +++++-------- .../service/GradDashboardService.java | 1 + .../service/GradDashboardServiceTest.java | 2 +- 7 files changed, 17 insertions(+), 23 deletions(-) diff --git a/api/src/main/java/ca/bc/gov/educ/api/batchgraduation/entity/BatchJobExecutionContextEntity.java b/api/src/main/java/ca/bc/gov/educ/api/batchgraduation/entity/BatchJobExecutionContextEntity.java index 36da6f86..dcaff691 100644 --- a/api/src/main/java/ca/bc/gov/educ/api/batchgraduation/entity/BatchJobExecutionContextEntity.java +++ b/api/src/main/java/ca/bc/gov/educ/api/batchgraduation/entity/BatchJobExecutionContextEntity.java @@ -11,7 +11,7 @@ public class BatchJobExecutionContextEntity { @Id @Column(name = "JOB_EXECUTION_ID", nullable = false) - private Long id; + private Long jobExecutionId; @Column(name = "SHORT_CONTEXT", nullable = false, length = 2500) private String shortContext; diff --git a/api/src/main/java/ca/bc/gov/educ/api/batchgraduation/entity/BatchStepExecutionContextEntity.java b/api/src/main/java/ca/bc/gov/educ/api/batchgraduation/entity/BatchStepExecutionContextEntity.java index 0d0e684f..6668826c 100644 --- a/api/src/main/java/ca/bc/gov/educ/api/batchgraduation/entity/BatchStepExecutionContextEntity.java +++ b/api/src/main/java/ca/bc/gov/educ/api/batchgraduation/entity/BatchStepExecutionContextEntity.java @@ -10,7 +10,7 @@ public class BatchStepExecutionContextEntity { @Id @Column(name = "STEP_EXECUTION_ID", nullable = false) - private Long id; + private Long stepExecutionId; @Column(name = "SHORT_CONTEXT", length = 2500) private String shortContext; diff --git a/api/src/main/java/ca/bc/gov/educ/api/batchgraduation/entity/BatchStepExecutionEntity.java b/api/src/main/java/ca/bc/gov/educ/api/batchgraduation/entity/BatchStepExecutionEntity.java index 6b01c9e8..3f670bac 100644 --- a/api/src/main/java/ca/bc/gov/educ/api/batchgraduation/entity/BatchStepExecutionEntity.java +++ b/api/src/main/java/ca/bc/gov/educ/api/batchgraduation/entity/BatchStepExecutionEntity.java @@ -12,7 +12,7 @@ public class BatchStepExecutionEntity { @Id @Column(name = "STEP_EXECUTION_ID", nullable = false) - private Long id; + private Long stepExecutionId; @Column(name = "JOB_EXECUTION_ID", nullable = false) private Long jobExecutionId; diff --git a/api/src/main/java/ca/bc/gov/educ/api/batchgraduation/repository/BatchJobExecutionRepository.java b/api/src/main/java/ca/bc/gov/educ/api/batchgraduation/repository/BatchJobExecutionRepository.java index 6f92679e..5f8d278c 100644 --- a/api/src/main/java/ca/bc/gov/educ/api/batchgraduation/repository/BatchJobExecutionRepository.java +++ b/api/src/main/java/ca/bc/gov/educ/api/batchgraduation/repository/BatchJobExecutionRepository.java @@ -18,28 +18,24 @@ public interface BatchJobExecutionRepository extends JpaRepository