1
|
package eu.dnetlib.enabling.datasources.common;
|
2
|
|
3
|
import java.sql.Date;
|
4
|
import java.util.Set;
|
5
|
import javax.persistence.*;
|
6
|
|
7
|
@MappedSuperclass
|
8
|
public class Organization<DS extends Datasource<?, ?>> {
|
9
|
|
10
|
@Id
|
11
|
protected String id;
|
12
|
protected String legalshortname;
|
13
|
protected String legalname;
|
14
|
protected String websiteurl;
|
15
|
protected String logourl;
|
16
|
|
17
|
protected String country;
|
18
|
protected String collectedfrom;
|
19
|
|
20
|
protected Date dateofcollection;
|
21
|
protected String provenanceaction;
|
22
|
|
23
|
@ManyToMany(cascade = { CascadeType.PERSIST, CascadeType.MERGE }, fetch = FetchType.EAGER, mappedBy = "organizations")
|
24
|
protected Set<DS> datasources;
|
25
|
|
26
|
public Organization() {}
|
27
|
|
28
|
public String getId() {
|
29
|
return id;
|
30
|
}
|
31
|
|
32
|
public String getLegalshortname() {
|
33
|
return legalshortname;
|
34
|
}
|
35
|
|
36
|
public String getLegalname() {
|
37
|
return legalname;
|
38
|
}
|
39
|
|
40
|
public String getWebsiteurl() {
|
41
|
return websiteurl;
|
42
|
}
|
43
|
|
44
|
public String getLogourl() {
|
45
|
return logourl;
|
46
|
}
|
47
|
|
48
|
public String getCountry() {
|
49
|
return country;
|
50
|
}
|
51
|
|
52
|
public String getCollectedfrom() {
|
53
|
return collectedfrom;
|
54
|
}
|
55
|
|
56
|
public Date getDateofcollection() {
|
57
|
return dateofcollection;
|
58
|
}
|
59
|
|
60
|
public String getProvenanceaction() {
|
61
|
return provenanceaction;
|
62
|
}
|
63
|
|
64
|
public Organization<DS> setId(final String id) {
|
65
|
this.id = id;
|
66
|
return this;
|
67
|
}
|
68
|
|
69
|
public Organization<DS> setLegalshortname(final String legalshortname) {
|
70
|
this.legalshortname = legalshortname;
|
71
|
return this;
|
72
|
}
|
73
|
|
74
|
public Organization<DS> setLegalname(final String legalname) {
|
75
|
this.legalname = legalname;
|
76
|
return this;
|
77
|
}
|
78
|
|
79
|
public Organization<DS> setWebsiteurl(final String websiteurl) {
|
80
|
this.websiteurl = websiteurl;
|
81
|
return this;
|
82
|
}
|
83
|
|
84
|
public Organization<DS> setLogourl(final String logourl) {
|
85
|
this.logourl = logourl;
|
86
|
return this;
|
87
|
}
|
88
|
|
89
|
public Organization<DS> setCountry(final String country) {
|
90
|
this.country = country;
|
91
|
return this;
|
92
|
}
|
93
|
|
94
|
public Organization<DS> setCollectedfrom(final String collectedfrom) {
|
95
|
this.collectedfrom = collectedfrom;
|
96
|
return this;
|
97
|
}
|
98
|
|
99
|
public Organization<DS> setDateofcollection(final Date dateofcollection) {
|
100
|
this.dateofcollection = dateofcollection;
|
101
|
return this;
|
102
|
}
|
103
|
|
104
|
public Organization<DS> setProvenanceaction(final String provenanceaction) {
|
105
|
this.provenanceaction = provenanceaction;
|
106
|
return this;
|
107
|
}
|
108
|
|
109
|
public Set<DS> getDatasources() {
|
110
|
return datasources;
|
111
|
}
|
112
|
|
113
|
public void setDatasources(final Set<DS> datasources) {
|
114
|
this.datasources = datasources;
|
115
|
}
|
116
|
|
117
|
}
|