1
|
package eu.dnetlib.openaire.exporter.model.datasource.db;
|
2
|
|
3
|
import javax.persistence.Column;
|
4
|
import javax.persistence.Entity;
|
5
|
import javax.persistence.Id;
|
6
|
import javax.persistence.Table;
|
7
|
|
8
|
import com.fasterxml.jackson.annotation.JsonAutoDetect;
|
9
|
|
10
|
import eu.dnetlib.enabling.datasources.common.SearchApisEntry;
|
11
|
import io.swagger.annotations.ApiModel;
|
12
|
|
13
|
/**
|
14
|
* Created by claudio on 13/04/2017.
|
15
|
*/
|
16
|
@Entity
|
17
|
@Table(name = "search_api")
|
18
|
@ApiModel
|
19
|
@JsonAutoDetect
|
20
|
public class SearchApisDbEntry extends SearchApisEntry {
|
21
|
|
22
|
@Id
|
23
|
public String getId() {
|
24
|
return super.getId();
|
25
|
}
|
26
|
|
27
|
@Column(name = "compatibility")
|
28
|
public String getCompliance() {
|
29
|
return super.getCompliance();
|
30
|
}
|
31
|
|
32
|
@Column(name = "protocol")
|
33
|
public String getProtocol() {
|
34
|
return super.getProtocol();
|
35
|
}
|
36
|
|
37
|
@Column(name = "active")
|
38
|
public boolean isActive() {
|
39
|
return super.isActive();
|
40
|
}
|
41
|
|
42
|
@Column(name = "repoid")
|
43
|
public String getRepoid() {
|
44
|
return super.getRepoId();
|
45
|
}
|
46
|
|
47
|
@Column(name = "officialname")
|
48
|
public String getRepoName() {
|
49
|
return super.getRepoName();
|
50
|
}
|
51
|
|
52
|
@Column(name = "englishname")
|
53
|
public String getAlternativeName() {
|
54
|
return super.getAlternativeName();
|
55
|
}
|
56
|
|
57
|
@Column(name = "country")
|
58
|
public String getRepoCountry() {
|
59
|
return super.getRepoCountry();
|
60
|
}
|
61
|
|
62
|
@Column(name = "organization")
|
63
|
public String getRepoOrganization() {
|
64
|
return super.getRepoOrganization();
|
65
|
}
|
66
|
|
67
|
@Column(name = "namespaceprefix", columnDefinition = "bpchar(12)")
|
68
|
public String getRepoPrefix() {
|
69
|
return super.getRepoPrefix();
|
70
|
}
|
71
|
|
72
|
@Column(name = "last_aggregation_date")
|
73
|
public String getAggrDate() {
|
74
|
return super.getAggrDate();
|
75
|
}
|
76
|
|
77
|
@Column(name = "last_aggregation_total")
|
78
|
public int getAggrTotal() {
|
79
|
return super.getAggrTotal();
|
80
|
}
|
81
|
|
82
|
}
|