1
|
package eu.dnetlib.datasource.publisher.model.db;
|
2
|
|
3
|
import javax.persistence.Entity;
|
4
|
import javax.persistence.Id;
|
5
|
import javax.persistence.Table;
|
6
|
|
7
|
import io.swagger.annotations.ApiModel;
|
8
|
|
9
|
/**
|
10
|
* Created by claudio on 13/04/2017.
|
11
|
*/
|
12
|
|
13
|
@Entity
|
14
|
@Table(name = "dsm_identities")
|
15
|
//@JsonAutoDetect
|
16
|
@ApiModel(value = "Identities model", description = "provides identity details")
|
17
|
public class Identity {
|
18
|
|
19
|
@Id
|
20
|
private String pid;
|
21
|
|
22
|
private String issuertype;
|
23
|
|
24
|
public Identity() {}
|
25
|
|
26
|
public String getPid() {
|
27
|
return this.pid;
|
28
|
}
|
29
|
|
30
|
public String getIssuertype() {
|
31
|
return this.issuertype;
|
32
|
}
|
33
|
|
34
|
public Identity setPid(final String pid) {
|
35
|
this.pid = pid;
|
36
|
return this;
|
37
|
}
|
38
|
|
39
|
public Identity setIssuertype(final String issuertype) {
|
40
|
this.issuertype = issuertype;
|
41
|
return this;
|
42
|
}
|
43
|
|
44
|
}
|