1
|
package eu.dnetlib.goldoa.domain;
|
2
|
|
3
|
import com.google.gwt.user.client.rpc.IsSerializable;
|
4
|
|
5
|
import javax.persistence.*;
|
6
|
import java.util.ArrayList;
|
7
|
import java.util.List;
|
8
|
|
9
|
|
10
|
/**
|
11
|
* The persistent class for the funder database table.
|
12
|
*
|
13
|
*/
|
14
|
@Entity
|
15
|
public class Funder implements IsSerializable {
|
16
|
private static final long serialVersionUID = 1L;
|
17
|
@Id
|
18
|
@Column(columnDefinition = "text")
|
19
|
private String id;
|
20
|
@Column(columnDefinition = "text")
|
21
|
private String name;
|
22
|
@Column(columnDefinition = "text")
|
23
|
private String source;
|
24
|
@Column(columnDefinition = "text")
|
25
|
private String url;
|
26
|
|
27
|
@OneToMany(fetch = FetchType.LAZY, mappedBy = "pk.funder")
|
28
|
private List<RequestCoFunder> requestCoFunders = new ArrayList<>();
|
29
|
|
30
|
public Funder() {
|
31
|
}
|
32
|
|
33
|
public String getId() {
|
34
|
return this.id;
|
35
|
}
|
36
|
|
37
|
public void setId(String id) {
|
38
|
this.id = id;
|
39
|
}
|
40
|
|
41
|
public String getName() {
|
42
|
return this.name;
|
43
|
}
|
44
|
|
45
|
public void setName(String name) {
|
46
|
this.name = name;
|
47
|
}
|
48
|
|
49
|
public String getSource() {
|
50
|
return this.source;
|
51
|
}
|
52
|
|
53
|
public void setSource(String source) {
|
54
|
this.source = source;
|
55
|
}
|
56
|
|
57
|
public String getUrl() {
|
58
|
return this.url;
|
59
|
}
|
60
|
|
61
|
public void setUrl(String url) {
|
62
|
this.url = url;
|
63
|
}
|
64
|
|
65
|
}
|