1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package edu.sampleu.travel.dataobject;
17
18 import javax.persistence.Column;
19 import javax.persistence.Entity;
20 import javax.persistence.Id;
21 import javax.persistence.Table;
22
23 import org.kuali.rice.core.api.mo.common.active.MutableInactivatable;
24 import org.kuali.rice.krad.bo.DataObjectBase;
25
26 @Entity
27 @Table(name="TRVL_TRAVELER_TYP_T")
28 public class TravelerType extends DataObjectBase implements MutableInactivatable {
29 private static final long serialVersionUID = 1L;
30
31 @Id
32 @Column(name="code",length=3,nullable=false)
33 private String code;
34
35 @Column(name="src_code",length=10)
36 private String sourceCode;
37
38 @Column(name="nm",length=40,nullable=false)
39 private String name;
40
41 @Column(name="advances_ind",nullable=false,length=1)
42 private Boolean advances = Boolean.FALSE;
43
44 @Column(name="actv_ind",nullable=false,length=1)
45 private Boolean active = Boolean.TRUE;
46
47 public String getCode() {
48 return code;
49 }
50
51 public void setCode(String code) {
52 this.code = code;
53 }
54
55 public String getSourceCode() {
56 return sourceCode;
57 }
58
59 public void setSourceCode(String sourceCode) {
60 this.sourceCode = sourceCode;
61 }
62
63 public String getName() {
64 return name;
65 }
66
67 public void setName(String name) {
68 this.name = name;
69 }
70
71 public Boolean getAdvances() {
72 return advances;
73 }
74
75 public void setAdvances(Boolean advances) {
76 this.advances = advances;
77 }
78
79 @Override
80 public boolean isActive() {
81 return active;
82 }
83
84 public void setActive(boolean active) {
85 this.active = active;
86 }
87 }
88