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.Entity;
22 import javax.persistence.JoinColumn;
23 import javax.persistence.JoinTable;
24 import javax.persistence.ManyToMany;
25 import javax.persistence.OneToMany;
26 import javax.persistence.OneToOne;
27 import javax.persistence.Table;
28
29 import org.kuali.student.common.entity.AttributeOwner;
30 import org.kuali.student.common.entity.MetaEntity;
31
32 @Entity
33 @Table(name = "KSLU_CLU_FEE")
34 public class CluFee extends MetaEntity implements
35 AttributeOwner<CluFeeAttribute> {
36
37 @ManyToMany(cascade = CascadeType.ALL)
38 @JoinTable(name = "KSLU_CLU_FEE_JN_CLU_FEE_REC", joinColumns = @JoinColumn(name = "CLU_FEE_ID"), inverseJoinColumns = @JoinColumn(name = "CLU_FEE_REC_ID"))
39 private List<CluFeeRecord> cluFeeRecords;
40
41 @OneToOne(cascade=CascadeType.ALL)
42 @JoinColumn(name = "RT_DESCR_ID")
43 private LuRichText descr;
44
45 @OneToMany(cascade = CascadeType.ALL, mappedBy = "owner")
46 private List<CluFeeAttribute> attributes;
47
48 public List<CluFeeAttribute> getAttributes() {
49 return attributes;
50 }
51
52 public void setAttributes(List<CluFeeAttribute> attributes) {
53 this.attributes = attributes;
54 }
55
56 public List<CluFeeRecord> getCluFeeRecords() {
57 return this.cluFeeRecords;
58 }
59
60 public void setCluFeeRecords(List<CluFeeRecord> cluFeeRecords) {
61 this.cluFeeRecords = cluFeeRecords;
62 }
63
64 public LuRichText getDescr() {
65 return descr;
66 }
67
68 public void setDescr(LuRichText descr) {
69 this.descr = descr;
70 }
71
72 }