Project

General

Profile

1
package eu.dnetlib.goldoa.domain;
2

    
3
import com.fasterxml.jackson.annotation.JsonBackReference;
4

    
5
import java.io.Serializable;
6
import java.util.ArrayList;
7
import java.util.List;
8

    
9
import javax.persistence.*;
10

    
11

    
12
/**
13
 * The persistent class for the journal database table.
14
 * 
15
 */
16
@Entity
17
@NamedQuery(name="Journal.findAll", query="SELECT j FROM Journal j")
18
public class Journal implements Serializable {
19
	private static final long serialVersionUID = 1L;
20

    
21
	@Id
22
	@Column(columnDefinition = "text")
23
	private String id;
24
	@Column(columnDefinition = "text")
25
	private String alttitle;
26
	@Column(columnDefinition = "float NOT NULL")
27
	private double apc;
28
	@Column(columnDefinition = "float NOT NULL")
29
	private double discount;
30
	@Column(columnDefinition = "text")
31
	private String issn;
32
	
33
	@Column(columnDefinition = "text")
34
	private String licence;
35
	@Column(columnDefinition = "text")
36
	private String source;
37
	@Column(columnDefinition = "text")
38
	private String status;
39
	@Column(columnDefinition = "text")
40
	private String subjects;
41
	@Column(columnDefinition = "text")
42
	private String title;
43
	@Column(columnDefinition = "text")
44
	private String type;
45
	@Column(columnDefinition = "text")
46
	private String url;
47
	@Column(columnDefinition = "text")
48
	private String languages;
49

    
50
	@Column(columnDefinition = "text")
51
	private String country;
52

    
53
	@Basic
54
	@Convert( converter=CurrencyConverter.class )
55
	private Currency apccurrency = Currency.EUR;
56

    
57
	@OneToOne
58
    @JoinColumn(name = "publisher")
59
	private Publisher publisher;
60

    
61
	@OneToMany(mappedBy = "pk.journal",cascade=CascadeType.ALL)
62
	private List<JournalDiscount> discounts = new ArrayList<>();
63
	
64
	
65
	public Journal() {}
66

    
67
	public String getAlttitle() {
68
		return this.alttitle;
69
	}
70

    
71
	public void setAlttitle(String alttitle) {
72
		this.alttitle = alttitle;
73
	}
74

    
75
	public double getApc() {
76
		return this.apc;
77
	}
78

    
79
	public void setApc(double apc) {
80
		this.apc = apc;
81
	}
82

    
83
	public Currency getApccurrency() {
84
		return this.apccurrency;
85
	}
86

    
87
	public void setApccurrency(Currency apccurrency) {
88
		this.apccurrency = apccurrency;
89
	}
90

    
91
	public String getCountry() {
92
		return this.country;
93
	}
94

    
95
	public void setCountry(String country) {
96
		this.country = country;
97
	}
98

    
99
	public double getDiscount() {
100
		return this.discount;
101
	}
102

    
103
	public void setDiscount(double discount) {
104
		this.discount = discount;
105
	}
106

    
107
	public String getId() {
108
		return this.id;
109
	}
110

    
111
	public void setId(String id) {
112
		this.id = id;
113
	}
114

    
115
	public String getIssn() {
116
		return this.issn;
117
	}
118

    
119
	public void setIssn(String issn) {
120
		this.issn = issn;
121
	}
122

    
123
	public String getLanguages() {
124
		return languages;
125
	}
126

    
127
	public void setLanguages(String languages) {
128
		this.languages = languages;
129
	}
130

    
131
	public String getLicence() {
132
		return this.licence;
133
	}
134

    
135
	public void setLicence(String licence) {
136
		this.licence = licence;
137
	}
138

    
139
	public Publisher getPublisher() {
140
		return this.publisher;
141
	}
142

    
143
	public void setPublisher(Publisher publisher) {
144
		this.publisher = publisher;
145
	}
146

    
147
	public String getSource() {
148
		return this.source;
149
	}
150

    
151
	public void setSource(String source) {
152
		this.source = source;
153
	}
154

    
155
	public String getStatus() {
156
		return this.status;
157
	}
158

    
159
	public void setStatus(String status) {
160
		this.status = status;
161
	}
162

    
163
	public String getSubjects() {
164
		return this.subjects;
165
	}
166

    
167
	public void setSubjects(String subjects) {
168
		this.subjects = subjects;
169
	}
170

    
171
	public String getTitle() {
172
		return this.title;
173
	}
174

    
175
	public void setTitle(String title) {
176
		this.title = title;
177
	}
178

    
179
	public String getType() {
180
		return this.type;
181
	}
182

    
183
	public void setType(String type) {
184
		this.type = type;
185
	}
186

    
187
	public String getUrl() {
188
		return this.url;
189
	}
190

    
191
	public void setUrl(String url) {
192
		this.url = url;
193
	}
194

    
195
    public void setAlternativeTitle(String alternativeTitle) {
196
        this.alttitle = alternativeTitle;
197
    }
198

    
199
}
(24-24/53)