View Javadoc
1   /**
2    * Copyright 2005-2014 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.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