Project

General

Profile

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
	//@Column(columnDefinition = "text")
20
	private String alttitle;
21
	//@Column(columnDefinition = "float default 0")
22
	private float apc;
23
	//@Column(name="apc_currency",columnDefinition = "text default 'EUR'")
24
	@Enumerated(EnumType.STRING)
25
	private Currency apcCurrency;
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
	@OneToOne
51
    @JoinColumn(name = "language")
52
	private Language language ;
53
	
54
	@Id
55
	//@Column(columnDefinition = "text")
56
	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
	public Currency getApcCurrency() {
86
		return this.apcCurrency;
87
	}
88

    
89
	public void setApcCurrency(Currency apcCurrency) {
90
		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
    public void setAlternativeTitle(String alternativeTitle) {
198
        this.alttitle = alternativeTitle;
199
    }
200

    
201
}
(16-16/40)