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 org.kuali.rice.kim.impl.common.template;
017
018import javax.persistence.Column;
019import org.hibernate.annotations.Type;
020import org.kuali.rice.kim.api.common.template.TemplateContract;
021import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
022
023public abstract class TemplateBo extends PersistableBusinessObjectBase implements TemplateContract {
024
025    @Column(name="NMSPC_CD")
026    private String namespaceCode;
027
028    @Column(name="NM")
029    private String name;
030
031    @Column(name="DESC_TXT", length=400)
032    private String description;
033
034    @Column(name="KIM_TYP_ID")
035    private String kimTypeId;
036
037    @Column(name="ACTV_IND")
038    @Type(type="yes_no")
039    private boolean active;
040
041    @Override
042    public String getNamespaceCode() {
043        return namespaceCode;
044    }
045
046    public void setNamespaceCode(String namespaceCode) {
047        this.namespaceCode = namespaceCode;
048    }
049
050    @Override
051    public String getName() {
052        return name;
053    }
054
055    public void setName(String name) {
056        this.name = name;
057    }
058
059    @Override
060    public String getDescription() {
061        return description;
062    }
063
064    public void setDescription(String description) {
065        this.description = description;
066    }
067
068    @Override
069    public String getKimTypeId() {
070        return kimTypeId;
071    }
072
073    public void setKimTypeId(String kimTypeId) {
074        this.kimTypeId = kimTypeId;
075    }
076
077    @Override
078    public boolean isActive() {
079        return active;
080    }
081
082    public void setActive(boolean active) {
083        this.active = active;
084    }
085}