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 PrimaryDestination primaryDestination; 046 047 public TravelAuthorizationDocument() { 048 super(); 049 } 050 051 public String getTravelDocumentIdentifier() { 052 return travelDocumentIdentifier; 053 } 054 055 public void setTravelDocumentIdentifier(String travelDocumentIdentifier) { 056 this.travelDocumentIdentifier = travelDocumentIdentifier; 057 } 058 059 public String getTripTypeCode() { 060 return tripTypeCode; 061 } 062 063 public void setTripTypeCode(String tripTypeCode) { 064 this.tripTypeCode = tripTypeCode; 065 } 066 067 public Date getTripBegin() { 068 return tripBegin; 069 } 070 071 public void setTripBegin(Date tripBegin) { 072 this.tripBegin = tripBegin; 073 } 074 075 public Date getTripEnd() { 076 return tripEnd; 077 } 078 079 public void setTripEnd(Date tripEnd) { 080 this.tripEnd = tripEnd; 081 } 082 083 public String getTripDescription() { 084 return tripDescription; 085 } 086 087 public void setTripDescription(String tripDescription) { 088 this.tripDescription = tripDescription; 089 } 090 091 public Integer getPrimaryDestinationId() { 092 return primaryDestinationId; 093 } 094 095 public void setPrimaryDestinationId(Integer primaryDestinationId) { 096 this.primaryDestinationId = primaryDestinationId; 097 } 098 099 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 }