1
|
package eu.dnetlib.goldoa.domain;
|
2
|
|
3
|
import java.io.Serializable;
|
4
|
import javax.persistence.*;
|
5
|
import java.sql.Timestamp;
|
6
|
import java.util.ArrayList;
|
7
|
import java.util.List;
|
8
|
|
9
|
|
10
|
/**
|
11
|
* The persistent class for the project database table.
|
12
|
*
|
13
|
*/
|
14
|
@Entity
|
15
|
@NamedQuery(name="Project.findAll", query="SELECT p FROM Project p")
|
16
|
public class Project implements Serializable {
|
17
|
private static final long serialVersionUID = 1L;
|
18
|
|
19
|
//@Column(columnDefinition = "text")
|
20
|
private String acronym;
|
21
|
|
22
|
//@Column(columnDefinition = "text")
|
23
|
//private String call;
|
24
|
|
25
|
private Timestamp enddate;
|
26
|
|
27
|
//@Column(columnDefinition = "text")
|
28
|
private String funder;
|
29
|
|
30
|
//@Column(columnDefinition = "text")
|
31
|
private String fundingstream;
|
32
|
|
33
|
//@Column(columnDefinition = "text")
|
34
|
private String ganumber;
|
35
|
|
36
|
@Id
|
37
|
//@Column(columnDefinition = "text")
|
38
|
private String id;
|
39
|
|
40
|
private Boolean sc39;
|
41
|
|
42
|
//@Column(columnDefinition = "text")
|
43
|
private String scientificarea;
|
44
|
|
45
|
//@Column(columnDefinition = "text", nullable=false)
|
46
|
private String source;
|
47
|
|
48
|
private Timestamp startdate;
|
49
|
|
50
|
//@Column(columnDefinition = "text")
|
51
|
private String title;
|
52
|
|
53
|
//@Column(columnDefinition = "text")
|
54
|
private String url;
|
55
|
|
56
|
@OneToMany(mappedBy = "project",cascade=CascadeType.ALL)
|
57
|
private List<ProjectCoordinator> projectCoordinators = new ArrayList<>();
|
58
|
|
59
|
|
60
|
|
61
|
@OneToMany(mappedBy = "project",cascade=CascadeType.ALL)
|
62
|
private List<ProjectOrganization> projectOrganization = new ArrayList<>();
|
63
|
|
64
|
//@Column(columnDefinition = "text")
|
65
|
private String grant;
|
66
|
|
67
|
public Project() {
|
68
|
}
|
69
|
|
70
|
public String getAcronym() {
|
71
|
return this.acronym;
|
72
|
}
|
73
|
|
74
|
public void setAcronym(String acronym) {
|
75
|
this.acronym = acronym;
|
76
|
}
|
77
|
|
78
|
/*public String getCall() {
|
79
|
return this.call;
|
80
|
}
|
81
|
|
82
|
public void setCall(String call) {
|
83
|
this.call = call;
|
84
|
}*/
|
85
|
|
86
|
public Timestamp getEnddate() {
|
87
|
return this.enddate;
|
88
|
}
|
89
|
|
90
|
public void setEnddate(Timestamp enddate) {
|
91
|
this.enddate = enddate;
|
92
|
}
|
93
|
|
94
|
public String getFunder() {
|
95
|
return this.funder;
|
96
|
}
|
97
|
|
98
|
public void setFunder(String funder) {
|
99
|
this.funder = funder;
|
100
|
}
|
101
|
|
102
|
public String getFundingstream() {
|
103
|
return this.fundingstream;
|
104
|
}
|
105
|
|
106
|
public void setFundingstream(String fundingstream) {
|
107
|
this.fundingstream = fundingstream;
|
108
|
}
|
109
|
|
110
|
public String getGrant() {
|
111
|
return this.grant;
|
112
|
}
|
113
|
|
114
|
public void setGrant(String grant) {
|
115
|
this.grant = grant;
|
116
|
}
|
117
|
|
118
|
public String getId() {
|
119
|
return this.id;
|
120
|
}
|
121
|
|
122
|
public void setId(String id) {
|
123
|
this.id = id;
|
124
|
}
|
125
|
|
126
|
public Boolean getSc39() {
|
127
|
return this.sc39;
|
128
|
}
|
129
|
|
130
|
public void setSc39(Boolean sc39) {
|
131
|
this.sc39 = sc39;
|
132
|
}
|
133
|
|
134
|
public String getScientificarea() {
|
135
|
return this.scientificarea;
|
136
|
}
|
137
|
|
138
|
public void setScientificarea(String scientificarea) {
|
139
|
this.scientificarea = scientificarea;
|
140
|
}
|
141
|
|
142
|
public String getSource() {
|
143
|
return this.source;
|
144
|
}
|
145
|
|
146
|
public void setSource(String source) {
|
147
|
this.source = source;
|
148
|
}
|
149
|
|
150
|
public Timestamp getStartdate() {
|
151
|
return this.startdate;
|
152
|
}
|
153
|
|
154
|
public void setStartdate(Timestamp startdate) {
|
155
|
this.startdate = startdate;
|
156
|
}
|
157
|
|
158
|
public String getTitle() {
|
159
|
return this.title;
|
160
|
}
|
161
|
|
162
|
public void setTitle(String title) {
|
163
|
this.title = title;
|
164
|
}
|
165
|
|
166
|
public String getUrl() {
|
167
|
return this.url;
|
168
|
}
|
169
|
|
170
|
public void setUrl(String url) {
|
171
|
this.url = url;
|
172
|
}
|
173
|
|
174
|
public List<ProjectCoordinator> getProjectCoordinators() {
|
175
|
return projectCoordinators;
|
176
|
}
|
177
|
|
178
|
public void setProjectCoordinators(List<ProjectCoordinator> projectCoordinators) {
|
179
|
this.projectCoordinators = projectCoordinators;
|
180
|
}
|
181
|
|
182
|
public List<ProjectOrganization> getProjectOrganization() {
|
183
|
return projectOrganization;
|
184
|
}
|
185
|
|
186
|
public void setProjectOrganization(List<ProjectOrganization> projectOrganization) {
|
187
|
this.projectOrganization = projectOrganization;
|
188
|
}
|
189
|
|
190
|
}
|