| 1 | |
|
| 2 | |
|
| 3 | |
|
| 4 | |
|
| 5 | |
|
| 6 | |
|
| 7 | |
|
| 8 | |
|
| 9 | |
|
| 10 | |
|
| 11 | |
|
| 12 | |
|
| 13 | |
|
| 14 | |
|
| 15 | |
|
| 16 | |
package org.kuali.rice.kim.bo.ui; |
| 17 | |
|
| 18 | |
import javax.persistence.CascadeType; |
| 19 | |
import javax.persistence.Column; |
| 20 | |
import javax.persistence.FetchType; |
| 21 | |
import javax.persistence.GeneratedValue; |
| 22 | |
import javax.persistence.Id; |
| 23 | |
import javax.persistence.JoinColumn; |
| 24 | |
import javax.persistence.MappedSuperclass; |
| 25 | |
import javax.persistence.OneToOne; |
| 26 | |
import javax.persistence.Transient; |
| 27 | |
|
| 28 | |
import org.hibernate.annotations.GenericGenerator; |
| 29 | |
import org.hibernate.annotations.Parameter; |
| 30 | |
import org.kuali.rice.kim.bo.types.impl.KimAttributeImpl; |
| 31 | |
|
| 32 | |
|
| 33 | |
|
| 34 | |
|
| 35 | |
|
| 36 | |
|
| 37 | |
|
| 38 | |
@MappedSuperclass |
| 39 | |
public class KimDocumentAttributeDataBusinessObjectBase extends KimDocumentBoActivatableEditableBase { |
| 40 | |
|
| 41 | |
private static final long serialVersionUID = -1512640359333185819L; |
| 42 | |
@Id |
| 43 | |
@GeneratedValue(generator="KRIM_ATTR_DATA_ID_S") |
| 44 | |
@GenericGenerator(name="KRIM_ATTR_DATA_ID_S",strategy="org.kuali.rice.core.jpa.spring.RiceNumericStringSequenceStyleGenerator",parameters={ |
| 45 | |
@Parameter(name="sequence_name",value="KRIM_ATTR_DATA_ID_S"), |
| 46 | |
@Parameter(name="value_column",value="id") |
| 47 | |
}) |
| 48 | |
@Column(name = "ATTR_DATA_ID") |
| 49 | |
private String attrDataId; |
| 50 | |
@Column(name = "KIM_TYP_ID") |
| 51 | |
private String kimTypId; |
| 52 | |
@Column(name = "KIM_ATTR_DEFN_ID") |
| 53 | |
private String kimAttrDefnId; |
| 54 | 0 | @Column(name = "ATTR_VAL") |
| 55 | |
private String attrVal = ""; |
| 56 | |
@OneToOne(targetEntity=KimAttributeImpl.class, fetch=FetchType.EAGER, cascade={}) |
| 57 | |
@JoinColumn(name="KIM_ATTR_DEFN_ID",insertable=false,updatable=false) |
| 58 | |
private KimAttributeImpl kimAttribute; |
| 59 | |
@Transient |
| 60 | |
private String qualifierKey; |
| 61 | |
@Transient |
| 62 | |
private Boolean unique; |
| 63 | |
|
| 64 | |
|
| 65 | |
|
| 66 | |
|
| 67 | |
|
| 68 | |
public KimDocumentAttributeDataBusinessObjectBase() { |
| 69 | 0 | super(); |
| 70 | 0 | } |
| 71 | |
|
| 72 | |
public String getAttrDataId() { |
| 73 | 0 | return attrDataId; |
| 74 | |
} |
| 75 | |
|
| 76 | |
public void setAttrDataId(String attrDataId) { |
| 77 | 0 | this.attrDataId = attrDataId; |
| 78 | 0 | } |
| 79 | |
|
| 80 | |
public String getKimTypId() { |
| 81 | 0 | return kimTypId; |
| 82 | |
} |
| 83 | |
|
| 84 | |
public void setKimTypId(String kimTypId) { |
| 85 | 0 | this.kimTypId = kimTypId; |
| 86 | 0 | } |
| 87 | |
|
| 88 | |
public String getKimAttrDefnId() { |
| 89 | 0 | return kimAttrDefnId; |
| 90 | |
} |
| 91 | |
|
| 92 | |
public void setKimAttrDefnId(String kimAttrDefnId) { |
| 93 | 0 | this.kimAttrDefnId = kimAttrDefnId; |
| 94 | 0 | } |
| 95 | |
|
| 96 | |
public String getAttrVal() { |
| 97 | 0 | return attrVal; |
| 98 | |
} |
| 99 | |
|
| 100 | |
public void setAttrVal(String attrVal) { |
| 101 | 0 | this.attrVal = attrVal; |
| 102 | 0 | } |
| 103 | |
|
| 104 | |
public String getQualifierKey() { |
| 105 | 0 | return this.qualifierKey; |
| 106 | |
} |
| 107 | |
|
| 108 | |
public void setQualifierKey(String qualifierKey) { |
| 109 | 0 | this.qualifierKey = qualifierKey; |
| 110 | 0 | } |
| 111 | |
|
| 112 | |
|
| 113 | |
|
| 114 | |
|
| 115 | |
public KimAttributeImpl getKimAttribute() { |
| 116 | 0 | return this.kimAttribute; |
| 117 | |
} |
| 118 | |
|
| 119 | |
|
| 120 | |
|
| 121 | |
|
| 122 | |
public void setKimAttribute(KimAttributeImpl kimAttribute) { |
| 123 | 0 | this.kimAttribute = kimAttribute; |
| 124 | 0 | } |
| 125 | |
|
| 126 | |
|
| 127 | |
|
| 128 | |
|
| 129 | |
public Boolean isUnique() { |
| 130 | 0 | return this.unique; |
| 131 | |
} |
| 132 | |
|
| 133 | |
|
| 134 | |
|
| 135 | |
|
| 136 | |
public void setUnique(Boolean unique) { |
| 137 | 0 | this.unique = unique; |
| 138 | 0 | } |
| 139 | |
|
| 140 | |
} |