1
|
package eu.dnetlib.goldoa.domain;
|
2
|
|
3
|
import java.io.Serializable;
|
4
|
import java.util.ArrayList;
|
5
|
import java.util.List;
|
6
|
|
7
|
import javax.persistence.*;
|
8
|
|
9
|
|
10
|
@Entity
|
11
|
public class Organization implements Serializable {
|
12
|
private static final long serialVersionUID = 1L;
|
13
|
|
14
|
@Id
|
15
|
// @Column(columnDefinition = "text")
|
16
|
private String id;
|
17
|
// @Column(columnDefinition = "text")
|
18
|
private String country;
|
19
|
// @Column(columnDefinition = "text")
|
20
|
private String name;
|
21
|
// @Column(columnDefinition = "text")
|
22
|
private String shortname;
|
23
|
//@Column(columnDefinition = "text")
|
24
|
private String source;
|
25
|
|
26
|
@OneToMany(mappedBy = "organization",cascade=CascadeType.ALL)
|
27
|
private List<JournalDiscount> discounts = new ArrayList<>();
|
28
|
|
29
|
@OneToMany(mappedBy = "organization",cascade=CascadeType.ALL)
|
30
|
private List<OrganizationBudget> organizationBudget = new ArrayList<>();
|
31
|
|
32
|
@OneToMany(mappedBy = "organization",cascade=CascadeType.ALL)
|
33
|
private List<ProjectOrganization> projectOrganization = new ArrayList<>();
|
34
|
|
35
|
@OneToMany(mappedBy = "organization",cascade=CascadeType.ALL)
|
36
|
private List<PublisherDiscount> publisherDiscount = new ArrayList<>();
|
37
|
|
38
|
public Organization() {
|
39
|
}
|
40
|
|
41
|
public String getId() {
|
42
|
return this.id;
|
43
|
}
|
44
|
|
45
|
public void setId(String id) {
|
46
|
this.id = id;
|
47
|
}
|
48
|
|
49
|
public String getCountry() {
|
50
|
return this.country;
|
51
|
}
|
52
|
|
53
|
public void setCountry(String country) {
|
54
|
this.country = country;
|
55
|
}
|
56
|
|
57
|
public String getName() {
|
58
|
return this.name;
|
59
|
}
|
60
|
|
61
|
public void setName(String name) {
|
62
|
this.name = name;
|
63
|
}
|
64
|
|
65
|
public String getShortname() {
|
66
|
return this.shortname;
|
67
|
}
|
68
|
|
69
|
public void setShortname(String shortname) {
|
70
|
this.shortname = shortname;
|
71
|
}
|
72
|
|
73
|
public String getSource() {
|
74
|
return this.source;
|
75
|
}
|
76
|
|
77
|
public void setSource(String source) {
|
78
|
this.source = source;
|
79
|
}
|
80
|
|
81
|
}
|