-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathTask.java
More file actions
85 lines (61 loc) · 1.46 KB
/
Task.java
File metadata and controls
85 lines (61 loc) · 1.46 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
package com.accenture.codingtest.springbootcodingtest.model;
import java.util.UUID;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import org.hibernate.annotations.GenericGenerator;
@Entity
public class Task {
@Id
@GeneratedValue(generator = "UUID")
@GenericGenerator(name = "UUID", strategy = "org.hibernate.id.UUIDGenerator")
private UUID id;
@Column(nullable = false)
private String title;
@Column
private String description;
@Column(nullable = false)
private String status;
@JoinColumn(name="id", nullable=false)
private Project project_id;
@JoinColumn(name="id", nullable=false)
private User user_id;
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status;
}
public Project getProject_id() {
return project_id;
}
public void setProject_id(Project project_id) {
this.project_id = project_id;
}
public User getUser_id() {
return user_id;
}
public void setUser_id(User user_id) {
this.user_id = user_id;
}
public UUID getId() {
return id;
}
public void setId(UUID id) {
this.id = id;
}
}