1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package org.kuali.student.core.enumerationmanagement.entity; |
17 | |
|
18 | |
import java.util.List; |
19 | |
|
20 | |
import javax.persistence.CascadeType; |
21 | |
import javax.persistence.Column; |
22 | |
import javax.persistence.Entity; |
23 | |
import javax.persistence.FetchType; |
24 | |
import javax.persistence.ManyToMany; |
25 | |
import javax.persistence.Table; |
26 | |
import javax.persistence.UniqueConstraint; |
27 | |
|
28 | |
import org.kuali.student.core.entity.BaseEntity; |
29 | |
|
30 | |
@Entity |
31 | |
@Table(name="KSEM_CTX_T", uniqueConstraints={@UniqueConstraint(columnNames={"CTX_KEY", "CTX_VAL"})}) |
32 | 0 | public class ContextEntity extends BaseEntity { |
33 | |
|
34 | |
@Column(name="CTX_KEY") |
35 | |
String contextKey; |
36 | |
|
37 | |
@Column(name="CTX_VAL") |
38 | |
String contextValue; |
39 | |
|
40 | |
@ManyToMany(mappedBy="contextEntityList", fetch = FetchType.LAZY,cascade = CascadeType.ALL) |
41 | |
List<EnumeratedValue> enumeratedValueList; |
42 | |
|
43 | |
public String getContextKey() { |
44 | 0 | return contextKey; |
45 | |
} |
46 | |
|
47 | |
public void setContextKey(String type) { |
48 | 0 | this.contextKey = type; |
49 | 0 | } |
50 | |
|
51 | |
public String getContextValue() { |
52 | 0 | return contextValue; |
53 | |
} |
54 | |
|
55 | |
public void setContextValue(String value) { |
56 | 0 | this.contextValue = value; |
57 | 0 | } |
58 | |
|
59 | |
public List<EnumeratedValue> getEnumeratedValueList() { |
60 | 0 | return enumeratedValueList; |
61 | |
} |
62 | |
public void setEnumeratedValueList( |
63 | |
List<EnumeratedValue> enumeratedValueList) { |
64 | 0 | this.enumeratedValueList = enumeratedValueList; |
65 | 0 | } |
66 | |
|
67 | |
} |