Revision 49899
Added by Claudio Atzori over 6 years ago
Organization.java | ||
---|---|---|
2 | 2 |
|
3 | 3 |
import java.sql.Date; |
4 | 4 |
import java.util.Set; |
5 |
import javax.persistence.*; |
|
5 | 6 |
|
7 |
@MappedSuperclass |
|
6 | 8 |
public class Organization<DS extends Datasource<?, ?>> { |
7 | 9 |
|
8 |
private String id; |
|
9 |
private String legalshortname; |
|
10 |
private String legalname; |
|
11 |
private String websiteurl; |
|
12 |
private String logourl; |
|
10 |
@Id |
|
11 |
protected String id; |
|
12 |
protected String legalshortname; |
|
13 |
protected String legalname; |
|
14 |
protected String websiteurl; |
|
15 |
protected String logourl; |
|
13 | 16 |
|
14 |
private Boolean eclegalbody; |
|
17 |
@Column(name = "ec_legalbody") |
|
18 |
protected Boolean eclegalbody; |
|
15 | 19 |
|
16 |
private Boolean eclegalperson; |
|
20 |
@Column(name = "ec_legalperson") |
|
21 |
protected Boolean eclegalperson; |
|
17 | 22 |
|
18 |
private Boolean ecnonprofit; |
|
23 |
@Column(name = "ec_nonprofit") |
|
24 |
protected Boolean ecnonprofit; |
|
19 | 25 |
|
20 |
private Boolean ecresearchorganization; |
|
26 |
@Column(name = "ec_researchorganization") |
|
27 |
protected Boolean ecresearchorganization; |
|
21 | 28 |
|
22 |
private Boolean echighereducation; |
|
29 |
@Column(name = "ec_highereducation") |
|
30 |
protected Boolean echighereducation; |
|
23 | 31 |
|
24 |
private Boolean ecinternationalorganizationeurinterests; |
|
32 |
@Column(name = "ec_internationalorganizationeurinterests") |
|
33 |
protected Boolean ecinternationalorganizationeurinterests; |
|
25 | 34 |
|
26 |
private Boolean ecinternationalorganization; |
|
35 |
@Column(name = "ec_internationalorganization") |
|
36 |
protected Boolean ecinternationalorganization; |
|
27 | 37 |
|
28 |
private Boolean ecenterprise; |
|
38 |
@Column(name = "ec_enterprise") |
|
39 |
protected Boolean ecenterprise; |
|
29 | 40 |
|
30 |
private Boolean ecsmevalidated; |
|
41 |
@Column(name = "ec_smevalidated") |
|
42 |
protected Boolean ecsmevalidated; |
|
31 | 43 |
|
32 |
private Boolean ecnutscode; |
|
44 |
@Column(name = "ec_nutscode") |
|
45 |
protected Boolean ecnutscode; |
|
33 | 46 |
|
34 |
private String country;
|
|
35 |
private String collectedfrom;
|
|
47 |
protected String country;
|
|
48 |
protected String collectedfrom;
|
|
36 | 49 |
|
37 |
private Date dateofcollection;
|
|
38 |
private String provenanceaction;
|
|
50 |
protected Date dateofcollection;
|
|
51 |
protected String provenanceaction;
|
|
39 | 52 |
|
40 |
private Set<DS> datasources; |
|
53 |
@ManyToMany(cascade = { CascadeType.PERSIST, CascadeType.MERGE }, fetch = FetchType.EAGER, mappedBy = "organizations") |
|
54 |
protected Set<DS> datasources; |
|
41 | 55 |
|
42 | 56 |
public Organization() {} |
43 | 57 |
|
Also available in: Unified diff
added javax.persistance annotations