* 배치 2 domain 생성
This commit is contained in:
@@ -10,13 +10,13 @@ import lombok.Setter;
|
||||
@Entity
|
||||
@Getter
|
||||
@Setter
|
||||
public class OrderEntity {
|
||||
public class WinEntity {
|
||||
|
||||
@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;
|
||||
private Long win;
|
||||
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