1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package org.kuali.student.core.enumerationmanagement.bo; |
17 | |
|
18 | |
import java.util.LinkedHashMap; |
19 | |
|
20 | |
import javax.persistence.Column; |
21 | |
import javax.persistence.Entity; |
22 | |
import javax.persistence.Table; |
23 | |
import javax.persistence.Transient; |
24 | |
|
25 | |
import org.kuali.student.core.bo.KsInactivatableFromToBase; |
26 | |
|
27 | |
|
28 | |
@Entity |
29 | |
@Table(name="KSEM_ENUM_VAL_T") |
30 | 0 | public class EnumeratedValue extends KsInactivatableFromToBase { |
31 | |
|
32 | |
public static final String ENUMERATION_KEY = "enumerationId"; |
33 | |
|
34 | |
private static final long serialVersionUID = 1L; |
35 | |
|
36 | |
|
37 | |
@Column(name="enum_key") |
38 | |
String enumerationId; |
39 | |
|
40 | |
@Column(name="CD") |
41 | |
String code; |
42 | |
|
43 | |
@Column(name="ABBREV_VAL") |
44 | |
String abbrevValue; |
45 | |
|
46 | |
@Column(name="VAL") |
47 | |
String value; |
48 | |
|
49 | |
@Column(name="SORT_KEY") |
50 | |
int sortKey; |
51 | |
|
52 | |
@Transient |
53 | |
transient Enumeration enumeration; |
54 | |
|
55 | |
|
56 | |
@Override |
57 | |
protected LinkedHashMap<String, Object> toStringMapper() { |
58 | 0 | LinkedHashMap<String, Object> map = super.toStringMapper(); |
59 | |
|
60 | 0 | map.put("enumerationId", enumerationId); |
61 | 0 | map.put("code", code); |
62 | 0 | map.put("abbrevValue", abbrevValue); |
63 | 0 | map.put("value", value); |
64 | 0 | map.put("activeFromDate", activeFromDate); |
65 | 0 | map.put("activeToDate", activeToDate); |
66 | 0 | map.put("sortKey", sortKey); |
67 | |
|
68 | 0 | return map; |
69 | |
} |
70 | |
|
71 | |
|
72 | |
public String getCode() { |
73 | 0 | return code; |
74 | |
} |
75 | |
|
76 | |
public void setCode(String code) { |
77 | 0 | this.code = code; |
78 | 0 | } |
79 | |
|
80 | |
public String getAbbrevValue() { |
81 | 0 | return abbrevValue; |
82 | |
} |
83 | |
|
84 | |
public void setAbbrevValue(String abbrevValue) { |
85 | 0 | this.abbrevValue = abbrevValue; |
86 | 0 | } |
87 | |
|
88 | |
public String getValue() { |
89 | 0 | return value; |
90 | |
} |
91 | |
|
92 | |
public void setValue(String value) { |
93 | 0 | this.value = value; |
94 | 0 | } |
95 | |
|
96 | |
public int getSortKey() { |
97 | 0 | return sortKey; |
98 | |
} |
99 | |
|
100 | |
public void setSortKey(int sortKey) { |
101 | 0 | this.sortKey = sortKey; |
102 | 0 | } |
103 | |
|
104 | |
public String getEnumerationId() { |
105 | 0 | return enumerationId; |
106 | |
} |
107 | |
|
108 | |
public void setEnumerationId(String enumerationId) { |
109 | 0 | this.enumerationId = enumerationId; |
110 | 0 | } |
111 | |
|
112 | |
public Enumeration getEnumeration() { |
113 | 0 | return enumeration; |
114 | |
} |
115 | |
|
116 | |
public void setEnumeration(Enumeration enumeration) { |
117 | 0 | this.enumeration = enumeration; |
118 | 0 | } |
119 | |
|
120 | |
} |