1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.student.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.JoinTable;
25 import javax.persistence.ManyToMany;
26 import javax.persistence.OneToMany;
27 import javax.persistence.OneToOne;
28 import javax.persistence.Table;
29
30 import org.kuali.student.core.entity.AttributeOwner;
31 import org.kuali.student.core.entity.MetaEntity;
32
33 @Entity
34 @Table(name = "KSLU_CLU_FEE_REC")
35 public class CluFeeRecord extends MetaEntity implements
36 AttributeOwner<CluFeeRecordAttribute> {
37
38 @Column(name = "FEE_TYPE")
39 private String feeType;
40
41 @Column(name = "RATE_TYPE")
42 private String rateType;
43
44 @OneToMany(cascade = CascadeType.ALL)
45 @JoinColumn(name= "CLUE_FEE_REC_ID")
46 private List<CluFeeAmount> feeAmounts;
47
48 @OneToMany(cascade = CascadeType.ALL, mappedBy = "owner")
49 private List<CluFeeRecordAttribute> attributes;
50
51 @ManyToMany(cascade=CascadeType.ALL)
52 @JoinTable(name = "KSLU_CLU_FEEREC_JN_AFFIL_ORG", joinColumns = @JoinColumn(name = "CLU_FEE_REC_ID"), inverseJoinColumns = @JoinColumn(name = "AFFIL_ORG_ID"))
53 private List<AffiliatedOrg> affiliatedOrgs;
54
55 @OneToOne(cascade=CascadeType.ALL)
56 @JoinColumn(name = "RT_DESCR_ID")
57 private LuRichText descr;
58
59 public String getFeeType() {
60 return feeType;
61 }
62
63 public void setFeeType(String feeType) {
64 this.feeType = feeType;
65 }
66
67 public String getRateType() {
68 return rateType;
69 }
70
71 public void setRateType(String rateType) {
72 this.rateType = rateType;
73 }
74
75 public List<CluFeeAmount> getFeeAmounts() {
76 return feeAmounts;
77 }
78
79 public void setFeeAmounts(List<CluFeeAmount> feeAmounts) {
80 this.feeAmounts = feeAmounts;
81 }
82
83 public List<CluFeeRecordAttribute> getAttributes() {
84 return attributes;
85 }
86
87 public void setAttributes(List<CluFeeRecordAttribute> attributes) {
88 this.attributes = attributes;
89 }
90
91 public List<AffiliatedOrg> getAffiliatedOrgs() {
92 return affiliatedOrgs;
93 }
94
95 public void setAffiliatedOrgs(List<AffiliatedOrg> affiliatedOrgs) {
96 this.affiliatedOrgs = affiliatedOrgs;
97 }
98
99 public LuRichText getDescr() {
100 return descr;
101 }
102
103 public void setDescr(LuRichText descr) {
104 this.descr = descr;
105 }
106
107
108 }