-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathTask.java
More file actions
38 lines (30 loc) · 957 Bytes
/
Task.java
File metadata and controls
38 lines (30 loc) · 957 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
package umc.codeplay.domain;
import jakarta.persistence.*;
import lombok.*;
import org.hibernate.annotations.Comment;
import umc.codeplay.domain.common.BaseEntity;
import umc.codeplay.domain.enums.JobType;
import umc.codeplay.domain.enums.ProcessStatus;
@Entity
@Getter
@Builder
@NoArgsConstructor(access = AccessLevel.PROTECTED)
@AllArgsConstructor
public class Task extends BaseEntity {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
// TODO: 추후 BigInteger로 변환
private Long id;
@Setter
@Enumerated(EnumType.STRING)
@Comment("task 진행 상태")
@Builder.Default
private ProcessStatus status = ProcessStatus.REQUESTED;
@Enumerated(EnumType.STRING)
@Column(nullable = false)
@Comment("요청 기능 타입 (화성 분석, 세션 분리, 리믹스)")
private JobType jobType;
@Column(nullable = false)
@Comment("요청 기능의 데이터 id")
private Long jobId;
}