1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package edu.sampleu.travel.dataobject;
17
18 import org.kuali.rice.core.api.mo.common.active.MutableInactivatable;
19 import org.kuali.rice.krad.bo.DataObjectBase;
20 import org.kuali.rice.krad.data.jpa.converters.BooleanYNConverter;
21 import org.kuali.rice.krad.data.jpa.eclipselink.PortableSequenceGenerator;
22 import org.kuali.rice.krad.data.provider.annotation.Description;
23 import org.kuali.rice.krad.data.provider.annotation.Label;
24 import org.kuali.rice.krad.data.provider.annotation.UifAutoCreateViewType;
25 import org.kuali.rice.krad.data.provider.annotation.UifAutoCreateViews;
26 import org.kuali.rice.krad.data.provider.annotation.UifValidCharactersConstraintBeanName;
27
28 import javax.persistence.Column;
29 import javax.persistence.Entity;
30 import javax.persistence.GeneratedValue;
31 import javax.persistence.Id;
32 import javax.persistence.Table;
33 import java.io.Serializable;
34 import java.math.BigDecimal;
35
36
37
38
39
40
41
42 @Entity
43 @Table(name = "TRVL_MLG_RT_T")
44 @UifAutoCreateViews({UifAutoCreateViewType.INQUIRY, UifAutoCreateViewType.LOOKUP})
45 public class TravelMileageRate extends DataObjectBase implements MutableInactivatable, Serializable {
46
47 private static final long serialVersionUID = 4525338013753227579L;
48
49 @Id @Column(name = "MLG_RT_ID", length = 40)
50 @GeneratedValue(generator = "TRVL_MLG_RT_ID_S")
51 @PortableSequenceGenerator(name = "TRVL_MLG_RT_ID_S")
52 @Label("Id")
53 private String mileageRateId;
54
55 @Column(name = "MLG_RT_CD", length = 40)
56 private String mileageRateCd;
57
58 @Column(name = "MLG_RT_NM", length = 40)
59 private String mileageRateName;
60
61 @Column(name = "MLG_RT", length = 10)
62 private BigDecimal mileageRate;
63
64 @Column(name = "ACTV_IND", nullable = false, length = 1)
65 @javax.persistence.Convert(converter = BooleanYNConverter.class)
66 boolean active = Boolean.TRUE;
67
68 public String getMileageRateId() {
69 return mileageRateId;
70 }
71
72 public void setMileageRateId(String mileageRateId) {
73 this.mileageRateId = mileageRateId;
74 }
75
76 public String getMileageRateCd() {
77 return mileageRateCd;
78 }
79
80 public void setMileageRateCd(String mileageRateCd) {
81 this.mileageRateCd = mileageRateCd;
82 }
83
84 public String getMileageRateName() {
85 return mileageRateName;
86 }
87
88 public void setMileageRateName(String mileageRateName) {
89 this.mileageRateName = mileageRateName;
90 }
91
92 public BigDecimal getMileageRate() {
93 return mileageRate;
94 }
95
96 public void setMileageRate(BigDecimal mileageRate) {
97 this.mileageRate = mileageRate;
98 }
99
100 public boolean isActive() {
101 return active;
102 }
103
104 public void setActive(boolean active) {
105 this.active = active;
106 }
107 }