View Javadoc
1   /**
2    * Copyright 2005-2015 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  import org.kuali.rice.krad.data.provider.annotation.UifAutoCreateViewType;
26  import org.kuali.rice.krad.data.provider.annotation.UifAutoCreateViews;
27  
28  @Entity
29  @Table(name="TRVL_TRAVELER_TYP_T")
30  @UifAutoCreateViews({UifAutoCreateViewType.INQUIRY, UifAutoCreateViewType.LOOKUP})
31  public class TravelerType extends DataObjectBase implements MutableInactivatable {
32  	private static final long serialVersionUID = 1L;
33  
34  	@Id
35      @Column(name="code",length=3,nullable=false)
36      private String code;
37  
38      @Column(name="src_code",length=10)
39      private String sourceCode;
40  
41      @Column(name="nm",length=40,nullable=false)
42      private String name;
43  
44      @Column(name="advances_ind",nullable=false,length=1)
45      private Boolean advances = Boolean.FALSE;
46  
47      @Column(name="actv_ind",nullable=false,length=1)
48      private Boolean active = Boolean.TRUE;
49  
50      public String getCode() {
51          return code;
52      }
53  
54      public void setCode(String code) {
55          this.code = code;
56      }
57  
58      public String getSourceCode() {
59          return sourceCode;
60      }
61  
62      public void setSourceCode(String sourceCode) {
63          this.sourceCode = sourceCode;
64      }
65  
66      public String getName() {
67          return name;
68      }
69  
70      public void setName(String name) {
71          this.name = name;
72      }
73  
74      public Boolean getAdvances() {
75          return advances;
76      }
77  
78      public void setAdvances(Boolean advances) {
79          this.advances = advances;
80      }
81  
82      @Override
83      public boolean isActive() {
84          return active;
85      }
86  
87      public void setActive(boolean active) {
88          this.active = active;
89      }
90  }
91