Skip to content

Commit

Permalink
[Fix] 테이블 이름 지정
Browse files Browse the repository at this point in the history
- 테이블 이름 재 지정
  • Loading branch information
yjy8501 committed Aug 8, 2024
1 parent 196f642 commit 1a54204
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
@Entity
@Getter
@NoArgsConstructor(access = AccessLevel.PROTECTED)
@Table(name = "exhibition")
public class Exhibition {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
@Entity
@Getter
@NoArgsConstructor(access = AccessLevel.PROTECTED)
@Table(name = "festival")
public class Festival {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
@Entity(name = "festival_info")
@Getter
@NoArgsConstructor(access = AccessLevel.PROTECTED)
@Table(name = "festival_info")
public class FestivalInfo extends BaseTimeEntity {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,16 @@ public void runExhibitionBatchJob() {
}
}

// @Scheduled(fixedDelay = 100000000)
// public void runFestivalBatchJob() {
// JobParameters jobParameters = new JobParametersBuilder()
// .addLong("time", System.currentTimeMillis())
// .toJobParameters();
// try {
// jobLauncher.run(festivalInfoJob, jobParameters);
// } catch (JobExecutionAlreadyRunningException | JobRestartException
// | JobInstanceAlreadyCompleteException | JobParametersInvalidException e) {
// e.printStackTrace();
// }
// }
@Scheduled(fixedDelay = 100000000)
public void runFestivalBatchJob() {
JobParameters jobParameters = new JobParametersBuilder()
.addLong("time", System.currentTimeMillis())
.toJobParameters();
try {
jobLauncher.run(festivalInfoJob, jobParameters);
} catch (JobExecutionAlreadyRunningException | JobRestartException
| JobInstanceAlreadyCompleteException | JobParametersInvalidException e) {
e.printStackTrace();
}
}
}

0 comments on commit 1a54204

Please sign in to comment.