Coverage Report - edu.sampleu.travel.bo.TravelAccount
 
Classes in this File Line Coverage Branch Coverage Complexity
TravelAccount
0%
0/25
N/A
1
 
 1  
 /**
 2  
  * Copyright 2005-2011 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  
 package edu.sampleu.travel.bo;
 17  
 
 18  
 import org.kuali.rice.core.api.util.type.KualiPercent;
 19  
 import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
 20  
 
 21  
 import javax.persistence.CascadeType;
 22  
 import javax.persistence.Column;
 23  
 import javax.persistence.Entity;
 24  
 import javax.persistence.FetchType;
 25  
 import javax.persistence.Id;
 26  
 import javax.persistence.JoinColumn;
 27  
 import javax.persistence.ManyToOne;
 28  
 import javax.persistence.Table;
 29  
 import java.util.Date;
 30  
 
 31  
 @Entity
 32  
 @Table(name="TRV_ACCT")
 33  0
 public class TravelAccount extends PersistableBusinessObjectBase {
 34  
     
 35  
         private static final long serialVersionUID = -7739303391609093875L;
 36  
         
 37  
         @Id
 38  
         @Column(name="acct_num")
 39  
         private String number;
 40  
         
 41  
         private String subAccount;
 42  
     
 43  
         @Column(name="acct_name")
 44  
         private String name;
 45  
         
 46  
         private String subAccountName;
 47  
         
 48  
         private KualiPercent subsidizedPercent;
 49  
         
 50  
         private Date createDate;
 51  
     
 52  
         public Date getCreateDate() {
 53  0
         return this.createDate;
 54  
     }
 55  
 
 56  
     @Column(name="acct_fo_id")
 57  
         private Long foId;
 58  
     
 59  
     @ManyToOne(fetch=FetchType.EAGER, cascade={CascadeType.PERSIST, CascadeType.MERGE})
 60  
         @JoinColumn(name="acct_fo_id", insertable=false, updatable=false)
 61  
         private FiscalOfficer fiscalOfficer;  
 62  
     
 63  
     public String getName() {
 64  0
         return name;
 65  
     }
 66  
 
 67  
     public void setName(String name) {
 68  0
         this.name = name;
 69  0
     }
 70  
 
 71  
     public String getNumber() {
 72  0
         return number;
 73  
     }
 74  
 
 75  
     public void setNumber(String number) {
 76  0
         this.number = number;
 77  0
     }
 78  
 
 79  
     public FiscalOfficer getFiscalOfficer() {
 80  0
         return fiscalOfficer;
 81  
     }
 82  
 
 83  
     public void setFiscalOfficer(FiscalOfficer fiscalOfficer) {
 84  0
         this.fiscalOfficer = fiscalOfficer;
 85  0
     }
 86  
 
 87  
     public Long getFoId() {
 88  0
         return foId;
 89  
     }
 90  
 
 91  
     public void setFoId(Long foId) {
 92  0
         this.foId = foId;
 93  0
     }
 94  
 
 95  
     public String getSubAccount() {
 96  0
         return this.subAccount;
 97  
     }
 98  
 
 99  
     public void setSubAccount(String subAccount) {
 100  0
         this.subAccount = subAccount;
 101  0
     }
 102  
 
 103  
     public String getSubAccountName() {
 104  0
         return this.subAccountName;
 105  
     }
 106  
 
 107  
     public void setSubAccountName(String subAccountName) {
 108  0
         this.subAccountName = subAccountName;
 109  0
     }
 110  
 
 111  
     public KualiPercent getSubsidizedPercent() {
 112  0
         return this.subsidizedPercent;
 113  
     }
 114  
 
 115  
     public void setSubsidizedPercent(KualiPercent subsidizedPercent) {
 116  0
         this.subsidizedPercent = subsidizedPercent;
 117  0
     }
 118  
 
 119  
     public void setCreateDate(Date createDate) {
 120  0
         this.createDate = createDate;
 121  0
     }
 122  
     
 123  
 }