Clover Coverage Report - Kuali Student 1.1.0-SNAPSHOT (Aggregated)
Coverage timestamp: Tue Feb 15 2011 04:04:07 EST
../../../../../../img/srcFileCovDistChart9.png 28% of files have more coverage
10   100   10   1
0   56   1   10
10     1  
1    
 
  CluAdminOrg       Line # 41 10 0% 10 2 90% 0.9
 
  (36)
 
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.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    import org.kuali.student.core.entity.AttributeOwner;
29    import org.kuali.student.core.entity.BaseEntity;
30   
31    /**
32    * This is a description of what this class does - hjohnson don't forget to fill this in.
33    *
34    * @author Kuali Student Team (kuali-student@googlegroups.com)
35    *
36    */
37   
38    @Entity
39    @Table(name = "KSLU_CLU_ADMIN_ORG")
40   
 
41    public class CluAdminOrg extends BaseEntity implements AttributeOwner<CluAdminOrgAttribute> {
42   
43    @Column(name = "ORG_ID")
44    private String orgId;
45   
46    @Column(name = "TYPE")
47    private String type;
48   
49    @Column(name = "IS_PR")
50    private boolean isPrimary=false;
51   
52    @OneToMany(cascade = CascadeType.ALL, mappedBy = "owner")
53    private List<CluAdminOrgAttribute> attributes;
54   
55    @ManyToOne
56    @JoinColumn(name="CLU_ID")
57    private Clu clu;
58   
 
59  2422 toggle public String getOrgId() {
60  2422 return orgId;
61    }
62   
 
63  892 toggle public void setOrgId(String orgId) {
64  892 this.orgId = orgId;
65    }
66   
67   
 
68  5098 toggle public List<CluAdminOrgAttribute> getAttributes() {
69  5098 return attributes;
70    }
71   
 
72  1782 toggle public void setAttributes(List<CluAdminOrgAttribute> attributes) {
73  1782 this.attributes = attributes;
74    }
75   
 
76  2422 toggle public String getType() {
77  2422 return type;
78    }
79   
 
80  892 toggle public void setType(String type) {
81  892 this.type = type;
82    }
83   
 
84  2422 toggle public boolean isPrimary() {
85  2422 return isPrimary;
86    }
87   
 
88  892 toggle public void setPrimary(boolean isPrimary) {
89  892 this.isPrimary = isPrimary;
90    }
91   
 
92  0 toggle public Clu getClu() {
93  0 return clu;
94    }
95   
 
96  892 toggle public void setClu(Clu clu) {
97  892 this.clu = clu;
98    }
99   
100    }