* 배치 2 domain 생성
This commit is contained in:
@@ -10,13 +10,13 @@ import lombok.Setter;
|
|||||||
@Entity
|
@Entity
|
||||||
@Getter
|
@Getter
|
||||||
@Setter
|
@Setter
|
||||||
public class OrderEntity {
|
public class WinEntity {
|
||||||
|
|
||||||
@Id
|
@Id
|
||||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||||
private Long id;
|
private Long id;
|
||||||
|
|
||||||
private String username;
|
private String username;
|
||||||
private Long order; //GREEN : 0 ~ 9, GOLD : 10 ~ 19, BLACK : 20 ~
|
private Long win;
|
||||||
private String grade;
|
private Boolean reward;
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
package com.example.springbatch.repository;
|
||||||
|
|
||||||
|
import com.example.springbatch.entity.WinEntity;
|
||||||
|
import org.springframework.data.jpa.repository.JpaRepository;
|
||||||
|
|
||||||
|
public interface WinRepository extends JpaRepository<WinEntity, Long> {
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user