1
2
3
4
5
6
7
8
9
10
11
12
13
14
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
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 }