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