1 | |
package org.kuali.rice.kim.impl.entity.affiliation |
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.entity.Type |
8 | |
import org.kuali.rice.kim.api.entity.TypeContract |
9 | |
import org.kuali.rice.krad.bo.PersistableBusinessObjectBase |
10 | |
|
11 | |
@Entity |
12 | |
@Table(name="KRIM_AFLTN_TYP_T") |
13 | |
public class EntityAffiliationTypeBo extends PersistableBusinessObjectBase implements TypeContract { |
14 | |
@Id |
15 | |
@Column(name="EMP_TYP_CD") |
16 | |
String code; |
17 | |
@Column(name="NM") |
18 | |
String name; |
19 | |
@org.hibernate.annotations.Type(type="yes_no") |
20 | |
@Column(name="ACTV_IND") |
21 | |
boolean active; |
22 | |
@Column(name="DISPLAY_SORT_CD") |
23 | |
String sortCode; |
24 | |
|
25 | |
|
26 | |
@org.hibernate.annotations.Type(type="yes_no") |
27 | |
@Column(name="EMP_AFLTN_TYP_IND") |
28 | |
protected boolean employmentAffiliationType; |
29 | |
|
30 | |
|
31 | |
|
32 | |
|
33 | |
|
34 | |
|
35 | |
|
36 | |
static Type to(EntityAffiliationTypeBo bo) { |
37 | 0 | if (bo == null) { return null } |
38 | 0 | return Type.Builder.create(bo).build() |
39 | |
} |
40 | |
|
41 | |
|
42 | |
|
43 | |
|
44 | |
|
45 | |
|
46 | |
static EntityAffiliationTypeBo from(Type immutable) { |
47 | 0 | if (immutable == null) {return null} |
48 | |
|
49 | 0 | EntityAffiliationTypeBo bo = new EntityAffiliationTypeBo() |
50 | 0 | bo.code = immutable.code |
51 | 0 | bo.name = immutable.name |
52 | 0 | bo.sortCode = immutable.sortCode |
53 | 0 | bo.active = immutable.active |
54 | 0 | bo.versionNumber = immutable.versionNumber |
55 | 0 | bo.objectId = immutable.objectId |
56 | |
|
57 | 0 | return bo; |
58 | |
} |
59 | |
} |