1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package org.kuali.rice.kim.framework.identity.employment |
17 | |
|
18 | |
import javax.persistence.Column |
19 | |
import javax.persistence.Entity |
20 | |
import javax.persistence.Id |
21 | |
import javax.persistence.Table |
22 | |
import org.kuali.rice.kim.api.identity.CodedAttribute |
23 | |
import org.kuali.rice.kim.api.identity.CodedAttributeContract |
24 | |
import org.kuali.rice.krad.bo.PersistableBusinessObjectBase |
25 | |
|
26 | |
public class EntityEmploymentStatusEbo extends PersistableBusinessObjectBase implements CodedAttributeContract { |
27 | |
String code; |
28 | |
String name; |
29 | |
boolean active; |
30 | |
String sortCode; |
31 | |
|
32 | |
|
33 | |
|
34 | |
|
35 | |
|
36 | |
|
37 | |
|
38 | |
static CodedAttribute to(EntityEmploymentStatusEbo bo) { |
39 | 0 | if (bo == null) { return null } |
40 | 0 | return CodedAttribute.Builder.create(bo).build() |
41 | |
} |
42 | |
|
43 | |
|
44 | |
|
45 | |
|
46 | |
|
47 | |
|
48 | |
static EntityEmploymentStatusEbo from(CodedAttribute immutable) { |
49 | 0 | if (immutable == null) {return null} |
50 | |
|
51 | 0 | EntityEmploymentStatusEbo bo = new EntityEmploymentStatusEbo() |
52 | 0 | bo.code = immutable.code |
53 | 0 | bo.name = immutable.name |
54 | 0 | bo.sortCode = immutable.sortCode |
55 | 0 | bo.active = immutable.active |
56 | 0 | bo.versionNumber = immutable.versionNumber |
57 | 0 | bo.objectId = immutable.objectId |
58 | |
|
59 | 0 | return bo; |
60 | |
} |
61 | |
|
62 | |
void refresh() { } |
63 | |
} |