001 /** 002 * Copyright 2010 The Kuali Foundation Licensed under the 003 * Educational Community License, Version 2.0 (the "License"); you may 004 * not use this file except in compliance with the License. You may 005 * obtain a copy of the License at 006 * 007 * http://www.osedu.org/licenses/ECL-2.0 008 * 009 * Unless required by applicable law or agreed to in writing, 010 * software distributed under the License is distributed on an "AS IS" 011 * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express 012 * or implied. See the License for the specific language governing 013 * permissions and limitations under the License. 014 */ 015 016 package org.kuali.student.lum.lu.entity; 017 018 import java.util.List; 019 020 import javax.persistence.CascadeType; 021 import javax.persistence.Entity; 022 import javax.persistence.JoinColumn; 023 import javax.persistence.JoinTable; 024 import javax.persistence.ManyToMany; 025 import javax.persistence.OneToMany; 026 import javax.persistence.OneToOne; 027 import javax.persistence.Table; 028 029 import org.kuali.student.common.entity.AttributeOwner; 030 import org.kuali.student.common.entity.MetaEntity; 031 032 @Entity 033 @Table(name = "KSLU_CLU_FEE") 034 public class CluFee extends MetaEntity implements 035 AttributeOwner<CluFeeAttribute> { 036 037 @ManyToMany(cascade = CascadeType.ALL) 038 @JoinTable(name = "KSLU_CLU_FEE_JN_CLU_FEE_REC", joinColumns = @JoinColumn(name = "CLU_FEE_ID"), inverseJoinColumns = @JoinColumn(name = "CLU_FEE_REC_ID")) 039 private List<CluFeeRecord> cluFeeRecords; 040 041 @OneToOne(cascade=CascadeType.ALL) 042 @JoinColumn(name = "RT_DESCR_ID") 043 private LuRichText descr; 044 045 @OneToMany(cascade = CascadeType.ALL, mappedBy = "owner") 046 private List<CluFeeAttribute> attributes; 047 048 public List<CluFeeAttribute> getAttributes() { 049 return attributes; 050 } 051 052 public void setAttributes(List<CluFeeAttribute> attributes) { 053 this.attributes = attributes; 054 } 055 056 public List<CluFeeRecord> getCluFeeRecords() { 057 return this.cluFeeRecords; 058 } 059 060 public void setCluFeeRecords(List<CluFeeRecord> cluFeeRecords) { 061 this.cluFeeRecords = cluFeeRecords; 062 } 063 064 public LuRichText getDescr() { 065 return descr; 066 } 067 068 public void setDescr(LuRichText descr) { 069 this.descr = descr; 070 } 071 072 }