Project

General

Profile

1
package eu.dnetlib.goldoa.domain;
2

    
3
import com.google.gwt.user.client.rpc.IsSerializable;
4

    
5
import javax.persistence.*;
6

    
7

    
8
/**
9
 * The persistent class for the commenttemplate database table.
10
 * 
11
 */
12
@Entity
13
public class CommentTemplate implements IsSerializable {
14
	private static final long serialVersionUID = 1L;
15

    
16
	@Id
17
	@Column(columnDefinition = "text")
18
	private String id;
19
	@Column(columnDefinition = "text")
20
	private String comment;
21
	@Column(columnDefinition = "text")
22
	private String name;
23

    
24
	@Basic
25
	@Convert( converter=RequestStatusConverter.class )
26
	private Request.RequestStatus status;
27

    
28
	public CommentTemplate(String id, Request.RequestStatus status, String name, String comment) {
29
		this.id = id;
30
		this.status = status;
31
		this.name = name;
32
		this.comment = comment;
33
	}
34

    
35
	public CommentTemplate() {
36
	}
37

    
38
	public String getId() {
39
		return this.id;
40
	}
41

    
42
	public void setId(String id) {
43
		this.id = id;
44
	}
45

    
46
	public String getComment() {
47
		return this.comment;
48
	}
49

    
50
	public void setComment(String comment) {
51
		this.comment = comment;
52
	}
53

    
54
	public String getName() {
55
		return this.name;
56
	}
57

    
58
	public void setName(String name) {
59
		this.name = name;
60
	}
61

    
62
	public Request.RequestStatus getStatus() {
63
		return this.status;
64
	}
65

    
66
	public void setStatus(Request.RequestStatus status) {
67
		this.status = status;
68
	}
69

    
70
}
(11-11/52)