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
|
/**
|
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 Serializable {
|
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 default 0")
|
25
|
private float apc;
|
26
|
//@Column(columnDefinition = "float default 0")
|
27
|
private float 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
|
|
46
|
@OneToOne
|
47
|
@JoinColumn(name = "country")
|
48
|
private Country country;
|
49
|
|
50
|
@Basic
|
51
|
@Convert( converter=CurrencyConverter.class )
|
52
|
private Currency apccurrency = Currency.EUR;
|
53
|
|
54
|
private String language ;
|
55
|
|
56
|
@OneToOne
|
57
|
@JoinColumn(name = "publisher")
|
58
|
private Publisher publisher;
|
59
|
|
60
|
@OneToMany(mappedBy = "pk.journal",cascade=CascadeType.ALL)
|
61
|
private List<JournalDiscount> discounts = new ArrayList<>();
|
62
|
|
63
|
|
64
|
public Journal() {}
|
65
|
|
66
|
public String getAlttitle() {
|
67
|
return this.alttitle;
|
68
|
}
|
69
|
|
70
|
public void setAlttitle(String alttitle) {
|
71
|
this.alttitle = alttitle;
|
72
|
}
|
73
|
|
74
|
public float getApc() {
|
75
|
return this.apc;
|
76
|
}
|
77
|
|
78
|
public void setApc(float apc) {
|
79
|
this.apc = apc;
|
80
|
}
|
81
|
|
82
|
public Currency getApccurrency() {
|
83
|
return this.apccurrency;
|
84
|
}
|
85
|
|
86
|
public void setApccurrency(Currency apccurrency) {
|
87
|
this.apccurrency = apccurrency;
|
88
|
}
|
89
|
|
90
|
public Country getCountry() {
|
91
|
return this.country;
|
92
|
}
|
93
|
|
94
|
public void setCountry(Country country) {
|
95
|
this.country = country;
|
96
|
}
|
97
|
|
98
|
public float getDiscount() {
|
99
|
return this.discount;
|
100
|
}
|
101
|
|
102
|
public void setDiscount(float discount) {
|
103
|
this.discount = discount;
|
104
|
}
|
105
|
|
106
|
public String getId() {
|
107
|
return this.id;
|
108
|
}
|
109
|
|
110
|
public void setId(String id) {
|
111
|
this.id = id;
|
112
|
}
|
113
|
|
114
|
public String getIssn() {
|
115
|
return this.issn;
|
116
|
}
|
117
|
|
118
|
public void setIssn(String issn) {
|
119
|
this.issn = issn;
|
120
|
}
|
121
|
|
122
|
public String getLanguage() {
|
123
|
return language;
|
124
|
}
|
125
|
|
126
|
public void setLanguage(String language) {
|
127
|
this.language = language;
|
128
|
}
|
129
|
|
130
|
public String getLicence() {
|
131
|
return this.licence;
|
132
|
}
|
133
|
|
134
|
public void setLicence(String licence) {
|
135
|
this.licence = licence;
|
136
|
}
|
137
|
|
138
|
public Publisher getPublisher() {
|
139
|
return this.publisher;
|
140
|
}
|
141
|
|
142
|
public void setPublisher(Publisher publisher) {
|
143
|
this.publisher = publisher;
|
144
|
}
|
145
|
|
146
|
public String getSource() {
|
147
|
return this.source;
|
148
|
}
|
149
|
|
150
|
public void setSource(String source) {
|
151
|
this.source = source;
|
152
|
}
|
153
|
|
154
|
public String getStatus() {
|
155
|
return this.status;
|
156
|
}
|
157
|
|
158
|
public void setStatus(String status) {
|
159
|
this.status = status;
|
160
|
}
|
161
|
|
162
|
public String getSubjects() {
|
163
|
return this.subjects;
|
164
|
}
|
165
|
|
166
|
public void setSubjects(String subjects) {
|
167
|
this.subjects = subjects;
|
168
|
}
|
169
|
|
170
|
public String getTitle() {
|
171
|
return this.title;
|
172
|
}
|
173
|
|
174
|
public void setTitle(String title) {
|
175
|
this.title = title;
|
176
|
}
|
177
|
|
178
|
public String getType() {
|
179
|
return this.type;
|
180
|
}
|
181
|
|
182
|
public void setType(String type) {
|
183
|
this.type = type;
|
184
|
}
|
185
|
|
186
|
public String getUrl() {
|
187
|
return this.url;
|
188
|
}
|
189
|
|
190
|
public void setUrl(String url) {
|
191
|
this.url = url;
|
192
|
}
|
193
|
|
194
|
public void setAlternativeTitle(String alternativeTitle) {
|
195
|
this.alttitle = alternativeTitle;
|
196
|
}
|
197
|
|
198
|
}
|