1
|
package eu.dnetlib.organizations.model;
|
2
|
|
3
|
import java.io.Serializable;
|
4
|
|
5
|
import javax.persistence.Column;
|
6
|
import javax.persistence.Entity;
|
7
|
import javax.persistence.Id;
|
8
|
import javax.persistence.IdClass;
|
9
|
import javax.persistence.Table;
|
10
|
|
11
|
@Entity
|
12
|
@Table(name = "other_ids")
|
13
|
@IdClass(OtherIdentifierPK.class)
|
14
|
public class OtherIdentifier implements Serializable {
|
15
|
|
16
|
/**
|
17
|
*
|
18
|
*/
|
19
|
private static final long serialVersionUID = -8290245353090885241L;
|
20
|
|
21
|
@Id
|
22
|
@Column(name = "id")
|
23
|
private String orgId;
|
24
|
|
25
|
@Id
|
26
|
@Column(name = "otherid")
|
27
|
private String otherId;
|
28
|
|
29
|
@Id
|
30
|
@Column(name = "type")
|
31
|
private String type;
|
32
|
|
33
|
public OtherIdentifier() {}
|
34
|
|
35
|
public OtherIdentifier(final String orgId, final String otherId, final String type) {
|
36
|
this.orgId = orgId;
|
37
|
this.otherId = otherId;
|
38
|
this.type = type;
|
39
|
}
|
40
|
|
41
|
public String getOrgId() {
|
42
|
return orgId;
|
43
|
}
|
44
|
|
45
|
public void setOrgId(final String orgId) {
|
46
|
this.orgId = orgId;
|
47
|
}
|
48
|
|
49
|
public String getOtherId() {
|
50
|
return otherId;
|
51
|
}
|
52
|
|
53
|
public void setOtherId(final String otherId) {
|
54
|
this.otherId = otherId;
|
55
|
}
|
56
|
|
57
|
public String getType() {
|
58
|
return type;
|
59
|
}
|
60
|
|
61
|
public void setType(final String type) {
|
62
|
this.type = type;
|
63
|
}
|
64
|
|
65
|
}
|