| 1 | |
|
| 2 | |
|
| 3 | |
|
| 4 | |
|
| 5 | |
|
| 6 | |
|
| 7 | |
|
| 8 | |
|
| 9 | |
|
| 10 | |
|
| 11 | |
|
| 12 | |
|
| 13 | |
|
| 14 | |
|
| 15 | |
|
| 16 | |
package org.kuali.rice.kim.bo.types.impl; |
| 17 | |
|
| 18 | |
import java.util.LinkedHashMap; |
| 19 | |
|
| 20 | |
import javax.persistence.CascadeType; |
| 21 | |
import javax.persistence.Column; |
| 22 | |
import javax.persistence.Entity; |
| 23 | |
import javax.persistence.FetchType; |
| 24 | |
import javax.persistence.Id; |
| 25 | |
import javax.persistence.JoinColumn; |
| 26 | |
import javax.persistence.OneToOne; |
| 27 | |
import javax.persistence.Table; |
| 28 | |
|
| 29 | |
import org.kuali.rice.kns.bo.PersistableBusinessObjectBase; |
| 30 | |
|
| 31 | |
|
| 32 | |
|
| 33 | |
|
| 34 | |
@Entity |
| 35 | |
@Table(name="KRIM_TYP_ATTR_T") |
| 36 | 0 | public class KimTypeAttributeImpl extends PersistableBusinessObjectBase { |
| 37 | |
|
| 38 | |
private static final long serialVersionUID = 1L; |
| 39 | |
|
| 40 | |
@Id |
| 41 | |
@Column(name="KIM_TYP_ATTR_ID") |
| 42 | |
protected String kimTypeAttributeId; |
| 43 | |
@Column(name="KIM_TYP_ID") |
| 44 | |
protected String kimTypeId; |
| 45 | |
@Column(name="KIM_ATTR_DEFN_ID") |
| 46 | |
protected String kimAttributeId; |
| 47 | |
@Column(name="SORT_CD") |
| 48 | |
protected String sortCode; |
| 49 | |
@Column(name="ACTV_IND") |
| 50 | |
protected boolean active; |
| 51 | |
|
| 52 | |
@OneToOne(targetEntity=KimAttributeImpl.class, fetch = FetchType.EAGER, cascade = { CascadeType.ALL }) |
| 53 | |
@JoinColumn(name = "KIM_ATTR_DEFN_ID", insertable = false, updatable = false) |
| 54 | |
protected KimAttributeImpl kimAttribute; |
| 55 | |
|
| 56 | |
public KimAttributeImpl getKimAttribute() { |
| 57 | 0 | return kimAttribute; |
| 58 | |
} |
| 59 | |
|
| 60 | |
public String getKimAttributeId() { |
| 61 | 0 | return kimAttributeId; |
| 62 | |
} |
| 63 | |
|
| 64 | |
public String getKimTypeAttributeId() { |
| 65 | 0 | return kimTypeAttributeId; |
| 66 | |
} |
| 67 | |
|
| 68 | |
public String getKimTypeId() { |
| 69 | 0 | return kimTypeId; |
| 70 | |
} |
| 71 | |
|
| 72 | |
public void setKimTypeAttributeId(String kimTypeAttributeId) { |
| 73 | 0 | this.kimTypeAttributeId = kimTypeAttributeId; |
| 74 | 0 | } |
| 75 | |
|
| 76 | |
public void setKimAttributeId(String kimAttributeId) { |
| 77 | 0 | this.kimAttributeId = kimAttributeId; |
| 78 | 0 | } |
| 79 | |
|
| 80 | |
public void setKimTypeId(String kimTypeId) { |
| 81 | 0 | this.kimTypeId = kimTypeId; |
| 82 | 0 | } |
| 83 | |
|
| 84 | |
|
| 85 | |
|
| 86 | |
|
| 87 | |
public boolean isActive() { |
| 88 | 0 | return active; |
| 89 | |
} |
| 90 | |
|
| 91 | |
|
| 92 | |
|
| 93 | |
|
| 94 | |
public void setActive(boolean active) { |
| 95 | 0 | this.active = active; |
| 96 | 0 | } |
| 97 | |
|
| 98 | |
|
| 99 | |
|
| 100 | |
|
| 101 | |
@SuppressWarnings("unchecked") |
| 102 | |
@Override |
| 103 | |
protected LinkedHashMap toStringMapper() { |
| 104 | 0 | LinkedHashMap m = new LinkedHashMap(); |
| 105 | 0 | m.put( "kimTypeAttributeId", kimTypeAttributeId ); |
| 106 | 0 | m.put( "kimTypeId", kimTypeId ); |
| 107 | 0 | m.put( "kimAttributeId", kimAttributeId ); |
| 108 | 0 | m.put( "active", active ); |
| 109 | 0 | return m; |
| 110 | |
} |
| 111 | |
|
| 112 | |
public String getSortCode() { |
| 113 | 0 | return this.sortCode; |
| 114 | |
} |
| 115 | |
|
| 116 | |
public void setSortCode(String sortCode) { |
| 117 | 0 | this.sortCode = sortCode; |
| 118 | 0 | } |
| 119 | |
|
| 120 | |
public void setKimAttribute(KimAttributeImpl kimAttribute) { |
| 121 | 0 | this.kimAttribute = kimAttribute; |
| 122 | 0 | } |
| 123 | |
|
| 124 | |
} |