| 1 | |
|
| 2 | |
|
| 3 | |
|
| 4 | |
|
| 5 | |
|
| 6 | |
|
| 7 | |
|
| 8 | |
|
| 9 | |
|
| 10 | |
|
| 11 | |
|
| 12 | |
|
| 13 | |
|
| 14 | |
|
| 15 | |
|
| 16 | |
package org.kuali.rice.kim.bo.entity.impl; |
| 17 | |
|
| 18 | |
import java.util.LinkedHashMap; |
| 19 | |
|
| 20 | |
import javax.persistence.Column; |
| 21 | |
import javax.persistence.Entity; |
| 22 | |
import javax.persistence.FetchType; |
| 23 | |
import javax.persistence.Id; |
| 24 | |
import javax.persistence.JoinColumn; |
| 25 | |
import javax.persistence.ManyToOne; |
| 26 | |
import javax.persistence.Table; |
| 27 | |
|
| 28 | |
import org.kuali.rice.kim.bo.entity.KimEntityAffiliation; |
| 29 | |
import org.kuali.rice.kim.bo.reference.AffiliationType; |
| 30 | |
import org.kuali.rice.kim.bo.reference.impl.AffiliationTypeImpl; |
| 31 | |
|
| 32 | |
|
| 33 | |
|
| 34 | |
|
| 35 | |
@Entity |
| 36 | |
@Table(name = "KRIM_ENTITY_AFLTN_T") |
| 37 | 0 | public class KimEntityAffiliationImpl extends KimDefaultableEntityDataBase implements KimEntityAffiliation { |
| 38 | |
|
| 39 | |
private static final long serialVersionUID = 1L; |
| 40 | |
|
| 41 | |
@Id |
| 42 | |
@Column(name = "ENTITY_AFLTN_ID") |
| 43 | |
protected String entityAffiliationId; |
| 44 | |
|
| 45 | |
@Column(name = "ENTITY_ID") |
| 46 | |
protected String entityId; |
| 47 | |
|
| 48 | |
@Column(name = "AFLTN_TYP_CD") |
| 49 | |
protected String affiliationTypeCode; |
| 50 | |
|
| 51 | |
@Column(name = "CAMPUS_CD") |
| 52 | |
protected String campusCode; |
| 53 | |
|
| 54 | |
@ManyToOne(targetEntity=AffiliationTypeImpl.class, fetch = FetchType.EAGER, cascade = {}) |
| 55 | |
@JoinColumn(name = "AFLTN_TYP_CD", insertable = false, updatable = false) |
| 56 | |
protected AffiliationType affiliationType; |
| 57 | |
|
| 58 | |
|
| 59 | |
|
| 60 | |
|
| 61 | |
|
| 62 | |
|
| 63 | |
|
| 64 | |
public String getAffiliationTypeCode() { |
| 65 | 0 | return affiliationTypeCode; |
| 66 | |
} |
| 67 | |
|
| 68 | |
|
| 69 | |
|
| 70 | |
|
| 71 | |
public String getCampusCode() { |
| 72 | 0 | return campusCode; |
| 73 | |
} |
| 74 | |
|
| 75 | |
|
| 76 | |
|
| 77 | |
|
| 78 | |
public String getEntityAffiliationId() { |
| 79 | 0 | return entityAffiliationId; |
| 80 | |
} |
| 81 | |
|
| 82 | |
|
| 83 | |
|
| 84 | |
|
| 85 | |
public void setAffiliationTypeCode(String affiliationTypeCode) { |
| 86 | 0 | this.affiliationTypeCode = affiliationTypeCode; |
| 87 | 0 | } |
| 88 | |
|
| 89 | |
|
| 90 | |
|
| 91 | |
|
| 92 | |
public void setCampusCode(String campusCode) { |
| 93 | 0 | this.campusCode = campusCode; |
| 94 | 0 | } |
| 95 | |
|
| 96 | |
|
| 97 | |
|
| 98 | |
|
| 99 | |
@Override |
| 100 | |
protected LinkedHashMap toStringMapper() { |
| 101 | 0 | LinkedHashMap m = new LinkedHashMap(); |
| 102 | 0 | m.put("entityAffiliationId", entityAffiliationId); |
| 103 | 0 | m.put("affiliationTypeCode", affiliationTypeCode); |
| 104 | 0 | return m; |
| 105 | |
} |
| 106 | |
|
| 107 | |
public String getEntityId() { |
| 108 | 0 | return this.entityId; |
| 109 | |
} |
| 110 | |
|
| 111 | |
public void setEntityId(String entityId) { |
| 112 | 0 | this.entityId = entityId; |
| 113 | 0 | } |
| 114 | |
|
| 115 | |
public AffiliationType getAffiliationType() { |
| 116 | 0 | return this.affiliationType; |
| 117 | |
} |
| 118 | |
|
| 119 | |
public void setAffiliationType(AffiliationType affiliationType) { |
| 120 | 0 | this.affiliationType = affiliationType; |
| 121 | 0 | } |
| 122 | |
|
| 123 | |
public void setEntityAffiliationId(String entityAffiliationId) { |
| 124 | 0 | this.entityAffiliationId = entityAffiliationId; |
| 125 | 0 | } |
| 126 | |
|
| 127 | |
} |