001    /**
002     * Copyright 2005-2014 The Kuali Foundation
003     *
004     * Licensed under the Educational Community License, Version 2.0 (the "License");
005     * you may not use this file except in compliance with the License.
006     * You may obtain a copy of the License at
007     *
008     * http://www.opensource.org/licenses/ecl2.php
009     *
010     * Unless required by applicable law or agreed to in writing, software
011     * distributed under the License is distributed on an "AS IS" BASIS,
012     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013     * See the License for the specific language governing permissions and
014     * limitations under the License.
015     */
016    package edu.sampleu.travel.approval.dataobject;
017    
018    import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
019    import javax.persistence.Column;
020    import javax.persistence.Entity;
021    import javax.persistence.GeneratedValue;
022    import javax.persistence.Id;
023    import javax.persistence.JoinColumn;
024    import javax.persistence.ManyToOne;
025    import javax.persistence.SequenceGenerator;
026    import javax.persistence.Table;
027    
028    import java.util.LinkedHashMap;
029    
030    /**
031     * @author Kuali Rice Team (rice.collab@kuali.org)
032     */
033    @Entity
034    @Table(name="TRVL_PER_DIEM_T")
035    public class PrimaryDestination extends PersistableBusinessObjectBase {
036    
037        private Integer id;
038        private TripType tripType;
039        private String tripTypeCode;
040        private String countryState;
041        private String countryStateName;
042        private String county;
043        private String primaryDestinationName;
044        private Boolean active = Boolean.TRUE;
045    
046        public Integer getId() {
047            return id;
048        }
049    
050        public void setId(Integer id) {
051            this.id = id;
052        }
053    
054        public TripType getTripType() {
055            return tripType;
056        }
057    
058        public void setTripType(TripType tripType) {
059            this.tripType = tripType;
060        }
061    
062        public String getTripTypeCode() {
063            return tripTypeCode;
064        }
065    
066        public void setTripTypeCode(String tripTypeCode) {
067            this.tripTypeCode = tripTypeCode;
068        }
069    
070        public String getCountryState() {
071            return countryState;
072        }
073    
074        public void setCountryState(String countryState) {
075            this.countryState = countryState;
076        }
077    
078        public String getCountryStateName() {
079            return countryStateName;
080        }
081    
082        public void setCountryStateName(String countryStateName) {
083            this.countryStateName = countryStateName;
084        }
085    
086        public String getCounty() {
087            return county;
088        }
089    
090        public void setCounty(String county) {
091            this.county = county;
092        }
093    
094        public String getPrimaryDestinationName() {
095            return primaryDestinationName;
096        }
097    
098        public void setPrimaryDestinationName(String primaryDestinationName) {
099            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    }