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.identity.affiliation;
017
018import javax.persistence.Column;
019import javax.persistence.MappedSuperclass;
020
021import org.kuali.rice.kim.api.identity.affiliation.EntityAffiliationContract;
022import org.kuali.rice.krad.bo.DataObjectBase;
023import org.kuali.rice.krad.data.jpa.converters.BooleanYNConverter;
024
025@MappedSuperclass
026public abstract class EntityAffiliationBase extends DataObjectBase implements EntityAffiliationContract {
027    private static final long serialVersionUID = 0L;
028    @Column(name = "ENTITY_ID")
029    private String entityId;
030    @Column(name = "AFLTN_TYP_CD")
031    private String affiliationTypeCode;
032    @Column(name = "CAMPUS_CD")
033    private String campusCode;
034    @javax.persistence.Convert(converter=BooleanYNConverter.class)
035    @Column(name = "DFLT_IND")
036    private boolean defaultValue;
037    @javax.persistence.Convert(converter=BooleanYNConverter.class)
038    @Column(name = "ACTV_IND")
039    private boolean active;
040
041    @Override
042    public String getEntityId() {
043        return entityId;
044    }
045
046    public void setEntityId(String entityId) {
047        this.entityId = entityId;
048    }
049
050    public String getAffiliationTypeCode() {
051        return affiliationTypeCode;
052    }
053
054    public void setAffiliationTypeCode(String affiliationTypeCode) {
055        this.affiliationTypeCode = affiliationTypeCode;
056    }
057
058    @Override
059    public String getCampusCode() {
060        return campusCode;
061    }
062
063    public void setCampusCode(String campusCode) {
064        this.campusCode = campusCode;
065    }
066
067
068    public boolean getDefaultValue() {
069        return defaultValue;
070    }
071
072    @Override
073    public boolean isDefaultValue() {
074        return defaultValue;
075    }
076
077    public void setDefaultValue(boolean defaultValue) {
078        this.defaultValue = defaultValue;
079    }
080
081    public boolean getActive() {
082        return active;
083    }
084
085    @Override
086    public boolean isActive() {
087        return active;
088    }
089
090    public void setActive(boolean active) {
091        this.active = active;
092    }
093
094
095}