Project

General

Profile

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