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 journal database table.
|
12
|
*
|
13
|
*/
|
14
|
@Entity
|
15
|
@NamedQuery(name="Journal.findAll", query="SELECT j FROM Journal j")
|
16
|
public class Journal implements IsSerializable {
|
17
|
private static final long serialVersionUID = 1L;
|
18
|
|
19
|
@Id
|
20
|
@Column(columnDefinition = "text")
|
21
|
private String id;
|
22
|
@Column(columnDefinition = "text")
|
23
|
private String alttitle;
|
24
|
@Column(columnDefinition = "float NOT NULL")
|
25
|
private double apc;
|
26
|
@Column(columnDefinition = "float NOT NULL")
|
27
|
private double discount;
|
28
|
@Column(columnDefinition = "text")
|
29
|
private String issn;
|
30
|
|
31
|
@Column(columnDefinition = "text")
|
32
|
private String licence;
|
33
|
@Column(columnDefinition = "text")
|
34
|
private String source;
|
35
|
@Column(columnDefinition = "text")
|
36
|
private String status;
|
37
|
@Column(columnDefinition = "text")
|
38
|
private String subjects;
|
39
|
@Column(columnDefinition = "text")
|
40
|
private String title;
|
41
|
@Column(columnDefinition = "text")
|
42
|
private String type;
|
43
|
@Column(columnDefinition = "text")
|
44
|
private String url;
|
45
|
@Column(columnDefinition = "text")
|
46
|
private String languages;
|
47
|
|
48
|
@Column(columnDefinition = "text")
|
49
|
private String country;
|
50
|
|
51
|
@Basic
|
52
|
@Convert( converter=CurrencyConverter.class )
|
53
|
private Currency apccurrency = Currency.EUR;
|
54
|
|
55
|
@OneToOne
|
56
|
@JoinColumn(name = "publisher")
|
57
|
private Publisher publisher;
|
58
|
|
59
|
@OneToMany(mappedBy = "pk.journal",cascade=CascadeType.ALL)
|
60
|
private List<JournalDiscount> discounts = new ArrayList<>();
|
61
|
|
62
|
|
63
|
public Journal() {}
|
64
|
|
65
|
public String getAlttitle() {
|
66
|
return this.alttitle;
|
67
|
}
|
68
|
|
69
|
public void setAlttitle(String alttitle) {
|
70
|
this.alttitle = alttitle;
|
71
|
}
|
72
|
|
73
|
public double getApc() {
|
74
|
return this.apc;
|
75
|
}
|
76
|
|
77
|
public void setApc(double apc) {
|
78
|
this.apc = apc;
|
79
|
}
|
80
|
|
81
|
public Currency getApccurrency() {
|
82
|
return this.apccurrency;
|
83
|
}
|
84
|
|
85
|
public void setApccurrency(Currency apccurrency) {
|
86
|
this.apccurrency = apccurrency;
|
87
|
}
|
88
|
|
89
|
public String getCountry() {
|
90
|
return this.country;
|
91
|
}
|
92
|
|
93
|
public void setCountry(String country) {
|
94
|
this.country = country;
|
95
|
}
|
96
|
|
97
|
public double getDiscount() {
|
98
|
return this.discount;
|
99
|
}
|
100
|
|
101
|
public void setDiscount(double discount) {
|
102
|
this.discount = discount;
|
103
|
}
|
104
|
|
105
|
public String getId() {
|
106
|
return this.id;
|
107
|
}
|
108
|
|
109
|
public void setId(String id) {
|
110
|
this.id = id;
|
111
|
}
|
112
|
|
113
|
public String getIssn() {
|
114
|
return this.issn;
|
115
|
}
|
116
|
|
117
|
public void setIssn(String issn) {
|
118
|
this.issn = issn;
|
119
|
}
|
120
|
|
121
|
public String getLanguages() {
|
122
|
return languages;
|
123
|
}
|
124
|
|
125
|
public void setLanguages(String languages) {
|
126
|
this.languages = languages;
|
127
|
}
|
128
|
|
129
|
public String getLicence() {
|
130
|
return this.licence;
|
131
|
}
|
132
|
|
133
|
public void setLicence(String licence) {
|
134
|
this.licence = licence;
|
135
|
}
|
136
|
|
137
|
public Publisher getPublisher() {
|
138
|
return this.publisher;
|
139
|
}
|
140
|
|
141
|
public void setPublisher(Publisher publisher) {
|
142
|
this.publisher = publisher;
|
143
|
}
|
144
|
|
145
|
public String getSource() {
|
146
|
return this.source;
|
147
|
}
|
148
|
|
149
|
public void setSource(String source) {
|
150
|
this.source = source;
|
151
|
}
|
152
|
|
153
|
public String getStatus() {
|
154
|
return this.status;
|
155
|
}
|
156
|
|
157
|
public void setStatus(String status) {
|
158
|
this.status = status;
|
159
|
}
|
160
|
|
161
|
public String getSubjects() {
|
162
|
return this.subjects;
|
163
|
}
|
164
|
|
165
|
public void setSubjects(String subjects) {
|
166
|
this.subjects = subjects;
|
167
|
}
|
168
|
|
169
|
public String getTitle() {
|
170
|
return this.title;
|
171
|
}
|
172
|
|
173
|
public void setTitle(String title) {
|
174
|
this.title = title;
|
175
|
}
|
176
|
|
177
|
public String getType() {
|
178
|
return this.type;
|
179
|
}
|
180
|
|
181
|
public void setType(String type) {
|
182
|
this.type = type;
|
183
|
}
|
184
|
|
185
|
public String getUrl() {
|
186
|
return this.url;
|
187
|
}
|
188
|
|
189
|
public void setUrl(String url) {
|
190
|
this.url = url;
|
191
|
}
|
192
|
|
193
|
public void setAlternativeTitle(String alternativeTitle) {
|
194
|
this.alttitle = alternativeTitle;
|
195
|
}
|
196
|
|
197
|
}
|