| 1 | |
|
| 2 | |
|
| 3 | |
|
| 4 | |
|
| 5 | |
|
| 6 | |
|
| 7 | |
|
| 8 | |
|
| 9 | |
|
| 10 | |
|
| 11 | |
|
| 12 | |
|
| 13 | |
|
| 14 | |
|
| 15 | |
|
| 16 | |
package org.kuali.rice.kim.impl.responsibility; |
| 17 | |
|
| 18 | |
|
| 19 | |
import javax.persistence.Column |
| 20 | |
import javax.persistence.Entity |
| 21 | |
import javax.persistence.Table |
| 22 | |
import org.kuali.rice.kim.api.common.attribute.KimAttributeData |
| 23 | |
import org.kuali.rice.kim.impl.common.attribute.KimAttributeBo |
| 24 | |
import org.kuali.rice.kim.impl.common.attribute.KimAttributeDataBo |
| 25 | |
|
| 26 | |
|
| 27 | |
|
| 28 | |
|
| 29 | |
@Entity |
| 30 | |
@Table(name="KRIM_RSP_ATTR_DATA_T") |
| 31 | |
public class ResponsibilityAttributeBo extends KimAttributeDataBo { |
| 32 | |
@Column(name="RSP_ID") |
| 33 | |
String assignedToId; |
| 34 | |
|
| 35 | |
|
| 36 | |
|
| 37 | |
|
| 38 | |
|
| 39 | |
|
| 40 | |
static KimAttributeData to(ResponsibilityAttributeBo bo) { |
| 41 | 0 | if (bo == null) { |
| 42 | 0 | return null |
| 43 | |
} |
| 44 | |
|
| 45 | 0 | return KimAttributeData.Builder.create(bo).build(); |
| 46 | |
} |
| 47 | |
|
| 48 | |
|
| 49 | |
|
| 50 | |
|
| 51 | |
|
| 52 | |
|
| 53 | |
static ResponsibilityAttributeBo from(KimAttributeData im) { |
| 54 | 0 | if (im == null) { |
| 55 | 0 | return null |
| 56 | |
} |
| 57 | |
|
| 58 | 0 | ResponsibilityAttributeBo bo = new ResponsibilityAttributeBo() |
| 59 | 0 | bo.id = im.id |
| 60 | 0 | bo.assignedToId = im.assignedToId |
| 61 | 0 | bo.kimAttribute = KimAttributeBo.from(im.kimAttribute) |
| 62 | 0 | bo.kimAttributeId = im.kimAttribute?.id |
| 63 | 0 | bo.attributeValue = bo.attributeValue |
| 64 | 0 | bo.kimTypeId = im.kimType?.id |
| 65 | 0 | bo.versionNumber = im.versionNumber |
| 66 | 0 | bo.objectId = im.objectId; |
| 67 | |
|
| 68 | 0 | return bo |
| 69 | |
} |
| 70 | |
} |