1
|
package eu.dnetlib.goldoa.domain;
|
2
|
|
3
|
import com.fasterxml.jackson.annotation.JsonBackReference;
|
4
|
import com.google.gwt.user.client.rpc.IsSerializable;
|
5
|
|
6
|
import javax.persistence.*;
|
7
|
import java.math.BigInteger;
|
8
|
import java.util.ArrayList;
|
9
|
import java.util.List;
|
10
|
|
11
|
|
12
|
/**
|
13
|
* The persistent class for the publication_identifier database table.
|
14
|
*
|
15
|
*/
|
16
|
@Entity
|
17
|
@Table(name="identifier")
|
18
|
public class Identifier implements IsSerializable {
|
19
|
private static final long serialVersionUID = 1L;
|
20
|
|
21
|
@Id
|
22
|
private BigInteger id;
|
23
|
@Column(columnDefinition = "text")
|
24
|
private String value;
|
25
|
@Column(columnDefinition = "text")
|
26
|
private String type;
|
27
|
|
28
|
@ManyToMany(fetch = FetchType.LAZY, mappedBy = "identifiers")
|
29
|
@JsonBackReference
|
30
|
private List<Publication> publications = new ArrayList<>();
|
31
|
|
32
|
public Identifier() {
|
33
|
}
|
34
|
|
35
|
public Identifier(String type, String value) {
|
36
|
this.type = type;
|
37
|
this.value = value;
|
38
|
}
|
39
|
|
40
|
public String getValue() {
|
41
|
return this.value;
|
42
|
}
|
43
|
|
44
|
public void setValue(String value) {
|
45
|
this.value = value;
|
46
|
}
|
47
|
|
48
|
public String getType() {
|
49
|
return this.type;
|
50
|
}
|
51
|
|
52
|
public void setType(String type) {
|
53
|
this.type = type;
|
54
|
}
|
55
|
|
56
|
public BigInteger getId() {
|
57
|
return id;
|
58
|
}
|
59
|
|
60
|
public void setId(BigInteger id) {
|
61
|
this.id = id;
|
62
|
}
|
63
|
}
|