1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.student.r2.lum.lu.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.JoinColumn;
24 import javax.persistence.ManyToOne;
25 import javax.persistence.OneToMany;
26 import javax.persistence.Table;
27
28
29 import org.kuali.student.r1.common.entity.AttributeOwner;
30 import org.kuali.student.r1.common.entity.MetaEntity;
31
32 @Entity
33 @Table(name = "KSLU_LU_CODE")
34 public class LuCode extends MetaEntity implements AttributeOwner<LuCodeAttribute> {
35
36 @Column(name = "DESCR")
37 private String descr;
38
39 @Column(name = "VALUE")
40 private String value;
41
42 @OneToMany(cascade = CascadeType.ALL, mappedBy = "owner")
43 private List<LuCodeAttribute> attributes;
44
45 @Column(name = "TYPE")
46 private String type;
47
48 @ManyToOne
49 @JoinColumn(name="CLU_ID")
50 private Clu clu;
51
52 public String getDescr() {
53 return descr;
54 }
55
56 public void setDescr(String descr) {
57 this.descr = descr;
58 }
59
60 public String getValue() {
61 return value;
62 }
63
64 public void setValue(String value) {
65 this.value = value;
66 }
67
68 public List<LuCodeAttribute> getAttributes() {
69 return attributes;
70 }
71
72 public void setAttributes(List<LuCodeAttribute> attributes) {
73 this.attributes = attributes;
74 }
75
76 public String getType() {
77 return type;
78 }
79
80 public void setType(String type) {
81 this.type = type;
82 }
83
84 public Clu getClu() {
85 return clu;
86 }
87
88 public void setClu(Clu clu) {
89 this.clu = clu;
90 }
91
92 }