* OrderEntity 추가
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
package com.example.springbatch.entity;
|
||||
|
||||
import jakarta.persistence.Entity;
|
||||
import jakarta.persistence.GeneratedValue;
|
||||
import jakarta.persistence.GenerationType;
|
||||
import jakarta.persistence.Id;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@Entity
|
||||
@Getter
|
||||
@Setter
|
||||
public class OrderEntity {
|
||||
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
private Long id;
|
||||
|
||||
private String username;
|
||||
private Long order; //GREEN : 0 ~ 9, GOLD : 10 ~ 19, BLACK : 20 ~
|
||||
private String grade;
|
||||
}
|
||||
@@ -15,7 +15,6 @@ public class FirstSchedule {
|
||||
|
||||
private final JobLauncher jobLauncher;
|
||||
private final JobRegistry jobRegistry;
|
||||
//private final ApplicationContext applicationContext;
|
||||
|
||||
public FirstSchedule(JobLauncher jobLauncher, JobRegistry jobRegistry) {
|
||||
this.jobLauncher = jobLauncher;
|
||||
|
||||
Reference in New Issue
Block a user