Project

General

Profile

1
package eu.dnetlib.goldoa.domain;
2

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

    
6

    
7
/**
8
 * The persistent class for the publication_identifier database table.
9
 * 
10
 */
11
@Entity
12
@Table(name="publication_identifier")
13
@NamedQuery(name="PublicationIdentifier.findAll", query="SELECT p FROM PublicationIdentifier p")
14
public class PublicationIdentifier implements Serializable {
15
	private static final long serialVersionUID = 1L;
16

    
17
	@Id
18
	@Column(columnDefinition = "text")
19
	private String id;
20
	
21
	@Column(columnDefinition = "text")
22
	private String identifier;
23

    
24
	@OneToOne
25
	@JoinColumn(name = "publication")
26
	private Publication publication;
27
	
28
	@Column(columnDefinition = "text")
29
	private String type;
30

    
31
	public PublicationIdentifier() {
32
	}
33

    
34
	public String getIdentifier() {
35
		return this.identifier;
36
	}
37

    
38
	public void setIdentifier(String identifier) {
39
		this.identifier = identifier;
40
	}
41

    
42
	public Publication getPublication() {
43
		return this.publication;
44
	}
45

    
46
	public void setPublication(Publication publication) {
47
		this.publication = publication;
48
	}
49

    
50
	public String getType() {
51
		return this.type;
52
	}
53

    
54
	public void setType(String type) {
55
		this.type = type;
56
	}
57
	
58
	public String getId() {
59
		return id;
60
	}
61

    
62
	public void setId(String id) {
63
		this.id = id;
64
	}
65

    
66
}
(25-25/34)