1
|
package eu.dnetlib.datasource.publisher.model.db;
|
2
|
|
3
|
import javax.persistence.*;
|
4
|
|
5
|
import com.fasterxml.jackson.annotation.JsonAutoDetect;
|
6
|
import com.fasterxml.jackson.annotation.JsonIgnore;
|
7
|
import io.swagger.annotations.ApiModel;
|
8
|
|
9
|
/**
|
10
|
* Created by claudio on 13/04/2017.
|
11
|
*/
|
12
|
@Entity
|
13
|
@Table(name = "apiparams")
|
14
|
@JsonAutoDetect
|
15
|
@ApiModel(value = "Datasource Api params model", description = "describes the datasource api params")
|
16
|
public class Apiparam {
|
17
|
|
18
|
@EmbeddedId
|
19
|
private ApiParamKey id;
|
20
|
|
21
|
@JsonIgnore
|
22
|
@ManyToOne
|
23
|
@JoinColumn(name = "api")
|
24
|
private Api api = null;
|
25
|
|
26
|
public ApiParamKey getId() {
|
27
|
return id;
|
28
|
}
|
29
|
|
30
|
public Api getApi() {
|
31
|
return api;
|
32
|
}
|
33
|
|
34
|
public Apiparam setId(final ApiParamKey id) {
|
35
|
this.id = id;
|
36
|
return this;
|
37
|
}
|
38
|
|
39
|
public Apiparam setApi(final Api api) {
|
40
|
this.api = api;
|
41
|
return this;
|
42
|
}
|
43
|
|
44
|
}
|