Project

General

Profile

1
package eu.dnetlib.goldoa.domain;
2

    
3
import java.io.Serializable;
4
import javax.persistence.*;
5

    
6
import java.util.ArrayList;
7
import java.util.Date;
8
import java.util.List;
9

    
10

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

    
20
	@Temporal(TemporalType.DATE)
21
	private Date acceptancedate;
22
	
23
	@Column(columnDefinition = "text")
24
	private String alternativedoi;
25
	@Column(columnDefinition = "text")
26
	private String alternativetitle;
27

    
28
	@Temporal(TemporalType.DATE)
29
	private Date date;
30
	@Column(columnDefinition = "text")
31
	private String doi;
32
	@Column(columnDefinition = "text")
33
	private String eventdetails;
34
	
35
	@Id
36
	@Column(columnDefinition = "text")
37
	private String id;
38

    
39
	@OneToOne
40
	@JoinColumn(name = "journal")
41
	private Journal journal;
42

    
43
	@Column(columnDefinition = "text")
44
	private String languages;
45

    
46
	@Column(columnDefinition = "text")
47
	private String license;
48

    
49
	@OneToOne
50
	@JoinColumn(name = "publisher")
51
	private Publisher publisher;
52

    
53
	@Column(columnDefinition = "text")
54
	private String repository;
55

    
56
	@Column(columnDefinition = "text")
57
	private String source;
58

    
59
	@Column(columnDefinition = "text")
60
	private String subjects;
61

    
62
	@Column(columnDefinition = "text")
63
	private String title;
64

    
65
	@Column(columnDefinition = "text")
66
	private String type;
67

    
68
	@OneToMany(mappedBy = "publication",cascade=CascadeType.ALL)
69
	private List<PublicationAffiliation> publicationAffiliation = new ArrayList<>();
70
	
71
	@OneToMany(mappedBy = "publication",cascade=CascadeType.ALL)
72
	private List<Publication_Author> publicationAuthor = new ArrayList<>();
73
	
74
	
75
	public Publication() {
76
	}
77

    
78
	public Date getAcceptancedate() {
79
		return this.acceptancedate;
80
	}
81

    
82
	public void setAcceptancedate(Date acceptancedate) {
83
		this.acceptancedate = acceptancedate;
84
	}
85

    
86
	public String getAlternativedoi() {
87
		return this.alternativedoi;
88
	}
89

    
90
	public void setAlternativedoi(String alternativedoi) {
91
		this.alternativedoi = alternativedoi;
92
	}
93

    
94
	public String getAlternativetitle() {
95
		return this.alternativetitle;
96
	}
97

    
98
	public void setAlternativetitle(String alternativetitle) {
99
		this.alternativetitle = alternativetitle;
100
	}
101

    
102
	public Date getDate() {
103
		return this.date;
104
	}
105

    
106
	public void setDate(Date date) {
107
		this.date = date;
108
	}
109

    
110
	public String getDoi() {
111
		return this.doi;
112
	}
113

    
114
	public void setDoi(String doi) {
115
		this.doi = doi;
116
	}
117

    
118
	public String getEventdetails() {
119
		return this.eventdetails;
120
	}
121

    
122
	public void setEventdetails(String eventdetails) {
123
		this.eventdetails = eventdetails;
124
	}
125

    
126
	public String getId() {
127
		return this.id;
128
	}
129

    
130
	public void setId(String id) {
131
		this.id = id;
132
	}
133

    
134
	public Journal getJournal() {
135
		return this.journal;
136
	}
137

    
138
	public void setJournal(Journal journal) {
139
		this.journal = journal;
140
	}
141

    
142
	public String getLanguages() {
143
		return this.languages;
144
	}
145

    
146
	public void setLanguages(String languages) {
147
		this.languages = languages;
148
	}
149

    
150
	public String getLicense() {
151
		return this.license;
152
	}
153

    
154
	public void setLicense(String license) {
155
		this.license = license;
156
	}
157

    
158
	public Publisher getPublisher() {
159
		return this.publisher;
160
	}
161

    
162
	public void setPublisher(Publisher publisher) {
163
		this.publisher = publisher;
164
	}
165

    
166
	public String getRepository() {
167
		return this.repository;
168
	}
169

    
170
	public void setRepository(String repository) {
171
		this.repository = repository;
172
	}
173

    
174
	public String getSource() {
175
		return this.source;
176
	}
177

    
178
	public void setSource(String source) {
179
		this.source = source;
180
	}
181

    
182
	public String getSubjects() {
183
		return this.subjects;
184
	}
185

    
186
	public void setSubjects(String subjects) {
187
		this.subjects = subjects;
188
	}
189

    
190
	public String getTitle() {
191
		return this.title;
192
	}
193

    
194
	public void setTitle(String title) {
195
		this.title = title;
196
	}
197

    
198
	public String getType() {
199
		return this.type;
200
	}
201

    
202
	public void setType(String type) {
203
		this.type = type;
204
	}
205

    
206
}
(23-23/34)