Coverage Report - edu.sampleu.travel.bo.TravelAccountType
 
Classes in this File Line Coverage Branch Coverage Complexity
TravelAccountType
0%
0/12
N/A
1
 
 1  
 /*
 2  
  * Copyright 2006-2008 The Kuali Foundation
 3  
  *
 4  
  * Licensed under the Educational Community License, Version 2.0 (the "License");
 5  
  * you may not use this file except in compliance with the License.
 6  
  * You may obtain a copy of the License at
 7  
  *
 8  
  * http://www.opensource.org/licenses/ecl2.php
 9  
  *
 10  
  * Unless required by applicable law or agreed to in writing, software
 11  
  * distributed under the License is distributed on an "AS IS" BASIS,
 12  
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 13  
  * See the License for the specific language governing permissions and
 14  
  * limitations under the License.
 15  
  */
 16  
 
 17  
 package edu.sampleu.travel.bo;
 18  
 
 19  
 import javax.persistence.Column;
 20  
 import javax.persistence.Id;
 21  
 import javax.persistence.CascadeType;
 22  
 import javax.persistence.Table;
 23  
 import javax.persistence.Entity;
 24  
 
 25  
 import java.util.LinkedHashMap;
 26  
 
 27  
 import org.kuali.rice.kns.bo.PersistableBusinessObjectBase;
 28  
 
 29  
 
 30  
 
 31  
 @Entity
 32  
 @Table(name="TRV_ACCT_TYPE")
 33  0
 public class TravelAccountType extends PersistableBusinessObjectBase {
 34  
     
 35  
     @Id
 36  
         @Column(name="acct_type")
 37  
         private String accountTypeCode;
 38  
     @Column(name="acct_type_name")
 39  
         private String name;
 40  
     
 41  
 
 42  
     public String getAccountTypeCode() {
 43  0
                 return accountTypeCode;
 44  
         }
 45  
 
 46  
 
 47  
         public void setAccountTypeCode(String accountTypeCode) {
 48  0
                 this.accountTypeCode = accountTypeCode;
 49  0
         }
 50  
 
 51  
 
 52  
         public String getName() {
 53  0
                 return name;
 54  
         }
 55  
 
 56  
 
 57  
         public void setName(String name) {
 58  0
                 this.name = name;
 59  0
         }
 60  
 
 61  
         public String getCodeAndDescription() {
 62  0
                 return accountTypeCode + " - " + name;
 63  
         }
 64  
 
 65  
         @Override
 66  
     protected LinkedHashMap toStringMapper() {
 67  0
         LinkedHashMap propMap = new LinkedHashMap();
 68  0
         propMap.put("accountTypeCode", accountTypeCode);
 69  0
         propMap.put("name", name);
 70  0
         return propMap;
 71  
     }
 72  
 
 73  
  
 74  
 }