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 publisher database table.
|
12
|
*
|
13
|
*/
|
14
|
@Entity
|
15
|
@NamedQuery(name="Publisher.findAll", query="SELECT p FROM Publisher p")
|
16
|
public class Publisher implements Serializable {
|
17
|
private static final long serialVersionUID = 1L;
|
18
|
|
19
|
private float apc;
|
20
|
|
21
|
@Column(name="apc_currency",columnDefinition = "text default 'EUR'")
|
22
|
private String apcCurrency;
|
23
|
|
24
|
@Column(name="bank_address",columnDefinition = "text")
|
25
|
private String bankAddress;
|
26
|
|
27
|
@Column(name="bank_code",columnDefinition = "text")
|
28
|
private String bankCode;
|
29
|
|
30
|
@Column(name="bank_holder",columnDefinition = "text")
|
31
|
private String bankHolder;
|
32
|
|
33
|
@Column(name="bank_iban",columnDefinition = "text")
|
34
|
private String bankIban;
|
35
|
|
36
|
@Column(name="bank_name",columnDefinition = "text")
|
37
|
private String bankName;
|
38
|
@Column(columnDefinition = "text")
|
39
|
private String contact;
|
40
|
@Column(columnDefinition = "float default 0")
|
41
|
private float discount;
|
42
|
@Column(columnDefinition = "text")
|
43
|
private String email;
|
44
|
@Id
|
45
|
@Column(columnDefinition = "text")
|
46
|
private String id;
|
47
|
@Column(columnDefinition = "text")
|
48
|
private String name;
|
49
|
@Column(columnDefinition = "text")
|
50
|
private String source;
|
51
|
|
52
|
@OneToMany(mappedBy = "publisher",cascade=CascadeType.ALL)
|
53
|
private List<PublisherDiscount> publisherDiscount = new ArrayList<>();
|
54
|
|
55
|
|
56
|
public Publisher() {
|
57
|
}
|
58
|
|
59
|
public float getApc() {
|
60
|
return this.apc;
|
61
|
}
|
62
|
|
63
|
public void setApc(float apc) {
|
64
|
this.apc = apc;
|
65
|
}
|
66
|
|
67
|
public String getApcCurrency() {
|
68
|
return this.apcCurrency;
|
69
|
}
|
70
|
|
71
|
public void setApcCurrency(String apcCurrency) {
|
72
|
this.apcCurrency = apcCurrency;
|
73
|
}
|
74
|
|
75
|
public String getBankAddress() {
|
76
|
return this.bankAddress;
|
77
|
}
|
78
|
|
79
|
public void setBankAddress(String bankAddress) {
|
80
|
this.bankAddress = bankAddress;
|
81
|
}
|
82
|
|
83
|
public String getBankCode() {
|
84
|
return this.bankCode;
|
85
|
}
|
86
|
|
87
|
public void setBankCode(String bankCode) {
|
88
|
this.bankCode = bankCode;
|
89
|
}
|
90
|
|
91
|
public String getBankHolder() {
|
92
|
return this.bankHolder;
|
93
|
}
|
94
|
|
95
|
public void setBankHolder(String bankHolder) {
|
96
|
this.bankHolder = bankHolder;
|
97
|
}
|
98
|
|
99
|
public String getBankIban() {
|
100
|
return this.bankIban;
|
101
|
}
|
102
|
|
103
|
public void setBankIban(String bankIban) {
|
104
|
this.bankIban = bankIban;
|
105
|
}
|
106
|
|
107
|
public String getBankName() {
|
108
|
return this.bankName;
|
109
|
}
|
110
|
|
111
|
public void setBankName(String bankName) {
|
112
|
this.bankName = bankName;
|
113
|
}
|
114
|
|
115
|
public String getContact() {
|
116
|
return this.contact;
|
117
|
}
|
118
|
|
119
|
public void setContact(String contact) {
|
120
|
this.contact = contact;
|
121
|
}
|
122
|
|
123
|
public float getDiscount() {
|
124
|
return this.discount;
|
125
|
}
|
126
|
|
127
|
public void setDiscount(float discount) {
|
128
|
this.discount = discount;
|
129
|
}
|
130
|
|
131
|
public String getEmail() {
|
132
|
return this.email;
|
133
|
}
|
134
|
|
135
|
public void setEmail(String email) {
|
136
|
this.email = email;
|
137
|
}
|
138
|
|
139
|
public String getId() {
|
140
|
return this.id;
|
141
|
}
|
142
|
|
143
|
public void setId(String id) {
|
144
|
this.id = id;
|
145
|
}
|
146
|
|
147
|
public String getName() {
|
148
|
return this.name;
|
149
|
}
|
150
|
|
151
|
public void setName(String name) {
|
152
|
this.name = name;
|
153
|
}
|
154
|
|
155
|
public String getSource() {
|
156
|
return this.source;
|
157
|
}
|
158
|
|
159
|
public void setSource(String source) {
|
160
|
this.source = source;
|
161
|
}
|
162
|
|
163
|
}
|