Project

General

Profile

1
package eu.dnetlib.enabling.datasources.common;
2

    
3
import javax.persistence.EmbeddedId;
4
import javax.persistence.MappedSuperclass;
5

    
6
@MappedSuperclass
7
public class ApiParam<APK extends ApiParamKey> {
8

    
9
	@EmbeddedId
10
	protected APK id;
11

    
12
	protected String value;
13

    
14
	public ApiParam() {}
15

    
16
	public APK getId() {
17
		return id;
18
	}
19

    
20
	public ApiParam setId(final APK id) {
21
		this.id = id;
22
		return this;
23
	}
24

    
25
	public String getValue() {
26
		return value;
27
	}
28

    
29
	public void setValue(final String value) {
30
		this.value = value;
31
	}
32

    
33
	public String getParam() {
34
		return id.getParam();
35
	}
36

    
37
	public void setParam(final String param) {
38
		getId().setParam(param);
39
	}
40

    
41
}
(4-4/16)