001/**
002 * Copyright 2005-2016 The Kuali Foundation
003 *
004 * Licensed under the Educational Community License, Version 2.0 (the "License");
005 * you may not use this file except in compliance with the License.
006 * You may obtain a copy of the License at
007 *
008 * http://www.opensource.org/licenses/ecl2.php
009 *
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS,
012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 * See the License for the specific language governing permissions and
014 * limitations under the License.
015 */
016package edu.sampleu.travel.dataobject;
017
018import javax.persistence.Column;
019import javax.persistence.Entity;
020import javax.persistence.Id;
021import javax.persistence.Table;
022
023import org.kuali.rice.core.api.mo.common.active.MutableInactivatable;
024import org.kuali.rice.krad.bo.DataObjectBase;
025import org.kuali.rice.krad.data.provider.annotation.UifAutoCreateViewType;
026import org.kuali.rice.krad.data.provider.annotation.UifAutoCreateViews;
027
028@Entity
029@Table(name="TRVL_TRAVELER_TYP_T")
030@UifAutoCreateViews({UifAutoCreateViewType.INQUIRY, UifAutoCreateViewType.LOOKUP})
031public class TravelerType extends DataObjectBase implements MutableInactivatable {
032        private static final long serialVersionUID = 1L;
033
034        @Id
035    @Column(name="code",length=3,nullable=false)
036    private String code;
037
038    @Column(name="src_code",length=10)
039    private String sourceCode;
040
041    @Column(name="nm",length=40,nullable=false)
042    private String name;
043
044    @Column(name="advances_ind",nullable=false,length=1)
045    private Boolean advances = Boolean.FALSE;
046
047    @Column(name="actv_ind",nullable=false,length=1)
048    private Boolean active = Boolean.TRUE;
049
050    public String getCode() {
051        return code;
052    }
053
054    public void setCode(String code) {
055        this.code = code;
056    }
057
058    public String getSourceCode() {
059        return sourceCode;
060    }
061
062    public void setSourceCode(String sourceCode) {
063        this.sourceCode = sourceCode;
064    }
065
066    public String getName() {
067        return name;
068    }
069
070    public void setName(String name) {
071        this.name = name;
072    }
073
074    public Boolean getAdvances() {
075        return advances;
076    }
077
078    public void setAdvances(Boolean advances) {
079        this.advances = advances;
080    }
081
082    @Override
083    public boolean isActive() {
084        return active;
085    }
086
087    public void setActive(boolean active) {
088        this.active = active;
089    }
090}
091