Clover Coverage Report - Kuali Student 1.2-M6-SNAPSHOT (Aggregated)
Coverage timestamp: Mon Sep 12 2011 05:03:53 EDT
../../../../../../img/srcFileCovDistChart10.png 0% of files have more coverage
4   57   4   1
0   32   1   4
4     1  
1    
 
  CluAccounting       Line # 33 4 0% 4 0 100% 1.0
 
  (35)
 
1    /**
2    * Copyright 2010 The Kuali Foundation Licensed under the
3    * Educational Community License, Version 2.0 (the "License"); you may
4    * not use this file except in compliance with the License. You may
5    * obtain a copy of the License at
6    *
7    * http://www.osedu.org/licenses/ECL-2.0
8    *
9    * Unless required by applicable law or agreed to in writing,
10    * software distributed under the License is distributed on an "AS IS"
11    * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
12    * or implied. See the License for the specific language governing
13    * permissions and limitations under the License.
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.Table;
27   
28    import org.kuali.student.common.entity.AttributeOwner;
29    import org.kuali.student.common.entity.BaseEntity;
30   
31    @Entity
32    @Table(name = "KSLU_CLU_ACCT")
 
33    public class CluAccounting extends BaseEntity implements AttributeOwner<CluAccountingAttribute> {
34   
35    @OneToMany(cascade = CascadeType.ALL, mappedBy = "owner")
36    private List<CluAccountingAttribute> attributes;
37   
38    @ManyToMany(cascade=CascadeType.ALL)
39    @JoinTable(name = "KSLU_CLU_ACCT_JN_AFFIL_ORG", joinColumns = @JoinColumn(name = "CLU_ACCT_ID"), inverseJoinColumns = @JoinColumn(name = "AFFIL_ORG_ID"))
40    private List<AffiliatedOrg> affiliatedOrgs;
41   
 
42  223 toggle public List<CluAccountingAttribute> getAttributes() {
43  223 return attributes;
44    }
45   
 
46  62 toggle public void setAttributes(List<CluAccountingAttribute> attributes) {
47  62 this.attributes = attributes;
48    }
49   
 
50  151 toggle public List<AffiliatedOrg> getAffiliatedOrgs() {
51  151 return this.affiliatedOrgs;
52    }
53   
 
54  36 toggle public void setAffiliatedOrgs(List<AffiliatedOrg> affiliatedOrgs) {
55  36 this.affiliatedOrgs = affiliatedOrgs;
56    }
57    }