1
2
3
4
5
6
7
8
9
10
11
12
13
14
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 }