View Javadoc

1   /**
2    * Copyright 2005-2014 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.approval.dataobject;
17  
18  import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
19  import javax.persistence.Column;
20  import javax.persistence.Entity;
21  import javax.persistence.GeneratedValue;
22  import javax.persistence.Id;
23  import javax.persistence.JoinColumn;
24  import javax.persistence.ManyToOne;
25  import javax.persistence.SequenceGenerator;
26  import javax.persistence.Table;
27  
28  import java.util.LinkedHashMap;
29  
30  /**
31   * @author Kuali Rice Team (rice.collab@kuali.org)
32   */
33  @Entity
34  @Table(name="TRVL_PER_DIEM_T")
35  public class PrimaryDestination extends PersistableBusinessObjectBase {
36  
37      private Integer id;
38      private TripType tripType;
39      private String tripTypeCode;
40      private String countryState;
41      private String countryStateName;
42      private String county;
43      private String primaryDestinationName;
44      private Boolean active = Boolean.TRUE;
45  
46      public Integer getId() {
47          return id;
48      }
49  
50      public void setId(Integer id) {
51          this.id = id;
52      }
53  
54      public TripType getTripType() {
55          return tripType;
56      }
57  
58      public void setTripType(TripType tripType) {
59          this.tripType = tripType;
60      }
61  
62      public String getTripTypeCode() {
63          return tripTypeCode;
64      }
65  
66      public void setTripTypeCode(String tripTypeCode) {
67          this.tripTypeCode = tripTypeCode;
68      }
69  
70      public String getCountryState() {
71          return countryState;
72      }
73  
74      public void setCountryState(String countryState) {
75          this.countryState = countryState;
76      }
77  
78      public String getCountryStateName() {
79          return countryStateName;
80      }
81  
82      public void setCountryStateName(String countryStateName) {
83          this.countryStateName = countryStateName;
84      }
85  
86      public String getCounty() {
87          return county;
88      }
89  
90      public void setCounty(String county) {
91          this.county = county;
92      }
93  
94      public String getPrimaryDestinationName() {
95          return primaryDestinationName;
96      }
97  
98      public void setPrimaryDestinationName(String primaryDestinationName) {
99          this.primaryDestinationName = primaryDestinationName;
100     }
101 
102     public boolean isActive() {
103         return active;
104     }
105 
106     public void setActive(boolean active) {
107         this.active = active;
108     }
109 
110     protected LinkedHashMap toStringMapper() {
111         LinkedHashMap map = new LinkedHashMap();
112         map.put("tripType", this.tripTypeCode);
113         map.put("countryState", this.countryState);
114         map.put("county", this.county);
115         map.put("primaryDestinationName", this.primaryDestinationName);
116 
117         return map;
118     }
119 }