View Javadoc

1   /**
2    * Copyright 2005-2012 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;
17  
18  import edu.sampleu.travel.approval.dataobject.PrimaryDestination;
19  import org.kuali.rice.krad.document.TransactionalDocumentBase;
20  
21  import javax.persistence.*;
22  import java.util.Date;
23  
24  /**
25   * Sample Travel Transactional Document
26   *
27   * @author Kuali Rice Team (rice.collab@kuali.org)
28   */
29  @Entity
30  @Table(name = "TRVL_AUTH_DOC_T")
31  public class TravelAuthorizationDocument extends TransactionalDocumentBase {
32  
33      private String travelDocumentIdentifier;
34      private String tripTypeCode;
35      private Date tripBegin;
36      private Date tripEnd;
37      private String tripDescription;
38      private Boolean primaryDestinationIndicator = false;
39  
40      private Integer primaryDestinationId;
41      private String primaryDestinationName;
42      private String primaryDestinationCountryState;
43      private String primaryDestinationCounty;
44  
45      private PrimaryDestination primaryDestination;
46  
47      public TravelAuthorizationDocument() {
48          super();
49      }
50  
51      public String getTravelDocumentIdentifier() {
52          return travelDocumentIdentifier;
53      }
54  
55      public void setTravelDocumentIdentifier(String travelDocumentIdentifier) {
56          this.travelDocumentIdentifier = travelDocumentIdentifier;
57      }
58  
59      public String getTripTypeCode() {
60          return tripTypeCode;
61      }
62  
63      public void setTripTypeCode(String tripTypeCode) {
64          this.tripTypeCode = tripTypeCode;
65      }
66  
67      public Date getTripBegin() {
68          return tripBegin;
69      }
70  
71      public void setTripBegin(Date tripBegin) {
72          this.tripBegin = tripBegin;
73      }
74  
75      public Date getTripEnd() {
76          return tripEnd;
77      }
78  
79      public void setTripEnd(Date tripEnd) {
80          this.tripEnd = tripEnd;
81      }
82  
83      public String getTripDescription() {
84          return tripDescription;
85      }
86  
87      public void setTripDescription(String tripDescription) {
88          this.tripDescription = tripDescription;
89      }
90  
91      public Integer getPrimaryDestinationId() {
92          return primaryDestinationId;
93      }
94  
95      public void setPrimaryDestinationId(Integer primaryDestinationId) {
96          this.primaryDestinationId = primaryDestinationId;
97      }
98  
99      public Boolean getPrimaryDestinationIndicator() {
100         return primaryDestinationIndicator;
101     }
102 
103     public void setPrimaryDestinationIndicator(Boolean primaryDestinationIndicator) {
104         this.primaryDestinationIndicator = primaryDestinationIndicator;
105     }
106 
107     public String getPrimaryDestinationName() {
108         return primaryDestinationName;
109     }
110 
111     public void setPrimaryDestinationName(String primaryDestinationName) {
112         this.primaryDestinationName = primaryDestinationName;
113     }
114 
115     public String getPrimaryDestinationCountryState() {
116         return primaryDestinationCountryState;
117     }
118 
119     public void setPrimaryDestinationCountryState(String primaryDestinationCountryState) {
120         this.primaryDestinationCountryState = primaryDestinationCountryState;
121     }
122 
123     public String getPrimaryDestinationCounty() {
124         return primaryDestinationCounty;
125     }
126 
127     public void setPrimaryDestinationCounty(String primaryDestinationCounty) {
128         this.primaryDestinationCounty = primaryDestinationCounty;
129     }
130 
131     public PrimaryDestination getPrimaryDestination() {
132         return primaryDestination;
133     }
134 
135     public void setPrimaryDestination(PrimaryDestination primaryDestination) {
136         this.primaryDestination = primaryDestination;
137     }
138 }