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 org.kuali.rice.kim.impl.identity.affiliation;
17  
18  import javax.persistence.Column;
19  import javax.persistence.MappedSuperclass;
20  
21  import org.kuali.rice.kim.api.identity.affiliation.EntityAffiliationContract;
22  import org.kuali.rice.krad.bo.DataObjectBase;
23  import org.kuali.rice.krad.data.jpa.converters.BooleanYNConverter;
24  
25  @MappedSuperclass
26  public abstract class EntityAffiliationBase extends DataObjectBase implements EntityAffiliationContract {
27      private static final long serialVersionUID = 0L;
28      @Column(name = "ENTITY_ID")
29      private String entityId;
30      @Column(name = "AFLTN_TYP_CD")
31      private String affiliationTypeCode;
32      @Column(name = "CAMPUS_CD")
33      private String campusCode;
34      @javax.persistence.Convert(converter=BooleanYNConverter.class)
35      @Column(name = "DFLT_IND")
36      private boolean defaultValue;
37      @javax.persistence.Convert(converter=BooleanYNConverter.class)
38      @Column(name = "ACTV_IND")
39      private boolean active;
40  
41      @Override
42      public String getEntityId() {
43          return entityId;
44      }
45  
46      public void setEntityId(String entityId) {
47          this.entityId = entityId;
48      }
49  
50      public String getAffiliationTypeCode() {
51          return affiliationTypeCode;
52      }
53  
54      public void setAffiliationTypeCode(String affiliationTypeCode) {
55          this.affiliationTypeCode = affiliationTypeCode;
56      }
57  
58      @Override
59      public String getCampusCode() {
60          return campusCode;
61      }
62  
63      public void setCampusCode(String campusCode) {
64          this.campusCode = campusCode;
65      }
66  
67  
68      public boolean getDefaultValue() {
69          return defaultValue;
70      }
71  
72      @Override
73      public boolean isDefaultValue() {
74          return defaultValue;
75      }
76  
77      public void setDefaultValue(boolean defaultValue) {
78          this.defaultValue = defaultValue;
79      }
80  
81      public boolean getActive() {
82          return active;
83      }
84  
85      @Override
86      public boolean isActive() {
87          return active;
88      }
89  
90      public void setActive(boolean active) {
91          this.active = active;
92      }
93  
94  
95  }