1 | |
package org.kuali.student.enrollment.lpr.model; |
2 | |
|
3 | |
import javax.persistence.*; |
4 | |
import java.io.Serializable; |
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
@Entity |
10 | |
public class DynamicAttribute implements Serializable { |
11 | |
private static final long serialVersionUID = -8609058228324425537L; |
12 | |
|
13 | |
@Id |
14 | |
@GeneratedValue |
15 | |
private Long id; |
16 | |
|
17 | |
@Enumerated(EnumType.STRING) |
18 | |
private DynamicType dynamicType; |
19 | |
|
20 | |
@Column(name = "\"key\"") |
21 | |
private String key; |
22 | |
|
23 | |
private String value; |
24 | |
|
25 | 0 | public DynamicAttribute() { |
26 | 0 | } |
27 | |
|
28 | 0 | public DynamicAttribute(DynamicType dynamicType, String key, String value) { |
29 | 0 | this.dynamicType = dynamicType; |
30 | 0 | this.key = key; |
31 | 0 | this.value = value; |
32 | 0 | } |
33 | |
|
34 | 0 | public DynamicAttribute(String key, String value) { |
35 | 0 | this.key = key; |
36 | 0 | this.value = value; |
37 | 0 | } |
38 | |
|
39 | |
public Long getId() { |
40 | 0 | return id; |
41 | |
} |
42 | |
|
43 | |
public void setId(Long id) { |
44 | 0 | this.id = id; |
45 | 0 | } |
46 | |
|
47 | |
public DynamicType getDynamicType() { |
48 | 0 | return dynamicType; |
49 | |
} |
50 | |
|
51 | |
public void setDynamicType(DynamicType dynamicType) { |
52 | 0 | this.dynamicType = dynamicType; |
53 | 0 | } |
54 | |
|
55 | |
public String getKey() { |
56 | 0 | return key; |
57 | |
} |
58 | |
|
59 | |
public void setKey(String key) { |
60 | 0 | this.key = key; |
61 | 0 | } |
62 | |
|
63 | |
public String getValue() { |
64 | 0 | return value; |
65 | |
} |
66 | |
|
67 | |
public void setValue(String value) { |
68 | 0 | this.value = value; |
69 | 0 | } |
70 | |
} |