Coverage Report - org.kuali.student.lum.lo.entity.LoLoRelationType
 
Classes in this File Line Coverage Branch Coverage Complexity
LoLoRelationType
0%
0/10
N/A
1
 
 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.lo.entity;
 17  
 
 18  
 import java.util.List;
 19  
 
 20  
 import javax.persistence.AttributeOverride;
 21  
 import javax.persistence.AttributeOverrides;
 22  
 import javax.persistence.CascadeType;
 23  
 import javax.persistence.Column;
 24  
 import javax.persistence.Entity;
 25  
 import javax.persistence.OneToMany;
 26  
 import javax.persistence.Table;
 27  
 
 28  
 import org.kuali.student.common.entity.Type;
 29  
 
 30  
 @Entity
 31  
 @Table(name = "KSLO_LO_RELTN_TYPE")
 32  
 @AttributeOverrides({
 33  
     @AttributeOverride(name="id", column=@Column(name="ID")),
 34  
     @AttributeOverride(name="descr", column=@Column(name="DESCR"))})
 35  0
 public class LoLoRelationType extends Type<LoLoRelationTypeAttribute> {
 36  
                 
 37  
         @Column(name = "REV_NAME")
 38  
         private String revName;
 39  
         
 40  
         @Column(name = "REV_DESCR")
 41  
         private String revDescription;
 42  
         
 43  
         @OneToMany(cascade = CascadeType.ALL, mappedBy = "owner")
 44  
         private List<LoLoRelationTypeAttribute> attributes;
 45  
 
 46  
         /**
 47  
          * @return the reverse name
 48  
          */
 49  
         public String getRevName() {
 50  0
                 return revName;
 51  
         }
 52  
 
 53  
         /**
 54  
          * @param revName the new reverse name
 55  
          */
 56  
         public void setRevName(String revName) {
 57  0
                 this.revName = revName;
 58  0
         }
 59  
 
 60  
         /**
 61  
          * @return the reverse description
 62  
          */
 63  
         public String getRevDescription() {
 64  0
                 return revDescription;
 65  
         }
 66  
 
 67  
         /**
 68  
          * @param revDescription the new reverse description
 69  
          */
 70  
         public void setRevDescription(String revDescription) {
 71  0
                 this.revDescription = revDescription;
 72  0
         }
 73  
 
 74  
         @Override
 75  
         public List<LoLoRelationTypeAttribute> getAttributes() {
 76  0
                 return attributes;
 77  
         }
 78  
 
 79  
         @Override
 80  
         public void setAttributes(List<LoLoRelationTypeAttribute> attributes) {
 81  0
                 this.attributes = attributes;
 82  0
         }
 83  
 }