1
|
package eu.dnetlib.goldoa.domain;
|
2
|
|
3
|
import java.io.Serializable;
|
4
|
import javax.persistence.*;
|
5
|
|
6
|
|
7
|
/**
|
8
|
* The persistent class for the commenttemplate database table.
|
9
|
*
|
10
|
*/
|
11
|
@Entity
|
12
|
public class CommentTemplate implements Serializable {
|
13
|
private static final long serialVersionUID = 1L;
|
14
|
|
15
|
@Id
|
16
|
//@Column(columnDefinition = "text")
|
17
|
private String id;
|
18
|
//@Column(columnDefinition = "text")
|
19
|
private String comment;
|
20
|
//@Column(columnDefinition = "text")
|
21
|
private String name;
|
22
|
|
23
|
@Basic
|
24
|
@Convert( converter=RequestStatusConverter.class )
|
25
|
private Request.RequestStatus status;
|
26
|
|
27
|
public CommentTemplate(String id, Request.RequestStatus status, String name, String comment) {
|
28
|
this.id = id;
|
29
|
this.status = status;
|
30
|
this.name = name;
|
31
|
this.comment = comment;
|
32
|
}
|
33
|
|
34
|
public CommentTemplate() {
|
35
|
}
|
36
|
|
37
|
public String getId() {
|
38
|
return this.id;
|
39
|
}
|
40
|
|
41
|
public void setId(String id) {
|
42
|
this.id = id;
|
43
|
}
|
44
|
|
45
|
public String getComment() {
|
46
|
return this.comment;
|
47
|
}
|
48
|
|
49
|
public void setComment(String comment) {
|
50
|
this.comment = comment;
|
51
|
}
|
52
|
|
53
|
public String getName() {
|
54
|
return this.name;
|
55
|
}
|
56
|
|
57
|
public void setName(String name) {
|
58
|
this.name = name;
|
59
|
}
|
60
|
|
61
|
public Request.RequestStatus getStatus() {
|
62
|
return this.status;
|
63
|
}
|
64
|
|
65
|
public void setStatus(Request.RequestStatus status) {
|
66
|
this.status = status;
|
67
|
}
|
68
|
|
69
|
}
|