001    /**
002     * Copyright 2005-2012 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;
017    
018    import edu.sampleu.travel.approval.dataobject.PrimaryDestination;
019    import org.kuali.rice.krad.document.TransactionalDocumentBase;
020    
021    import javax.persistence.*;
022    import java.util.Date;
023    
024    /**
025     * Sample Travel Transactional Document
026     *
027     * @author Kuali Rice Team (rice.collab@kuali.org)
028     */
029    @Entity
030    @Table(name = "TRVL_AUTH_DOC_T")
031    public class TravelAuthorizationDocument extends TransactionalDocumentBase {
032    
033        private String travelDocumentIdentifier;
034        private String tripTypeCode;
035        private Date tripBegin;
036        private Date tripEnd;
037        private String tripDescription;
038        private Boolean primaryDestinationIndicator = false;
039    
040        private Integer primaryDestinationId;
041        private String primaryDestinationName;
042        private String primaryDestinationCountryState;
043        private String primaryDestinationCounty;
044        
045        private String field59;
046    
047        public String getField59() {
048            return field59;
049        }
050    
051        public void setField59(String field59) {
052            this.field59 = field59;
053        }
054    
055        private PrimaryDestination primaryDestination;
056    
057        public TravelAuthorizationDocument() {
058            super();
059        }
060    
061        public String getTravelDocumentIdentifier() {
062            return travelDocumentIdentifier;
063        }
064    
065        public void setTravelDocumentIdentifier(String travelDocumentIdentifier) {
066            this.travelDocumentIdentifier = travelDocumentIdentifier;
067        }
068    
069        public String getTripTypeCode() {
070            return tripTypeCode;
071        }
072    
073        public void setTripTypeCode(String tripTypeCode) {
074            this.tripTypeCode = tripTypeCode;
075        }
076    
077        public Date getTripBegin() {
078            return tripBegin;
079        }
080    
081        public void setTripBegin(Date tripBegin) {
082            this.tripBegin = tripBegin;
083        }
084    
085        public Date getTripEnd() {
086            return tripEnd;
087        }
088    
089        public void setTripEnd(Date tripEnd) {
090            this.tripEnd = tripEnd;
091        }
092    
093        public String getTripDescription() {
094            return tripDescription;
095        }
096    
097        public void setTripDescription(String tripDescription) {
098            this.tripDescription = tripDescription;
099        }
100    
101        public Integer getPrimaryDestinationId() {
102            return primaryDestinationId;
103        }
104    
105        public void setPrimaryDestinationId(Integer primaryDestinationId) {
106            this.primaryDestinationId = primaryDestinationId;
107        }
108    
109        public Boolean getPrimaryDestinationIndicator() {
110            return primaryDestinationIndicator;
111        }
112    
113        public void setPrimaryDestinationIndicator(Boolean primaryDestinationIndicator) {
114            this.primaryDestinationIndicator = primaryDestinationIndicator;
115        }
116    
117        public String getPrimaryDestinationName() {
118            return primaryDestinationName;
119        }
120    
121        public void setPrimaryDestinationName(String primaryDestinationName) {
122            this.primaryDestinationName = primaryDestinationName;
123        }
124    
125        public String getPrimaryDestinationCountryState() {
126            return primaryDestinationCountryState;
127        }
128    
129        public void setPrimaryDestinationCountryState(String primaryDestinationCountryState) {
130            this.primaryDestinationCountryState = primaryDestinationCountryState;
131        }
132    
133        public String getPrimaryDestinationCounty() {
134            return primaryDestinationCounty;
135        }
136    
137        public void setPrimaryDestinationCounty(String primaryDestinationCounty) {
138            this.primaryDestinationCounty = primaryDestinationCounty;
139        }
140    
141        public PrimaryDestination getPrimaryDestination() {
142            return primaryDestination;
143        }
144    
145        public void setPrimaryDestination(PrimaryDestination primaryDestination) {
146            this.primaryDestination = primaryDestination;
147        }
148    }