1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package org.kuali.rice.kim.bo.entity.impl; |
17 | |
|
18 | |
import org.hibernate.annotations.Type; |
19 | |
import org.kuali.rice.kim.bo.entity.KimPrincipal; |
20 | |
import org.kuali.rice.kns.bo.PersistableBusinessObjectBase; |
21 | |
|
22 | |
import javax.persistence.Column; |
23 | |
import javax.persistence.Entity; |
24 | |
import javax.persistence.Id; |
25 | |
import javax.persistence.Table; |
26 | |
|
27 | |
|
28 | |
|
29 | |
|
30 | |
@Entity |
31 | |
@Table(name="KRIM_PRNCPL_T") |
32 | 0 | public class KimPrincipalImpl extends PersistableBusinessObjectBase implements KimPrincipal { |
33 | |
|
34 | |
private static final long serialVersionUID = 4480581610252159266L; |
35 | |
|
36 | |
@Id |
37 | |
@Column(name="PRNCPL_ID", columnDefinition="VARCHAR(40)") |
38 | |
private String principalId; |
39 | |
|
40 | |
@Column(name="PRNCPL_NM") |
41 | |
private String principalName; |
42 | |
|
43 | |
@Column(name="ENTITY_ID") |
44 | |
private String entityId; |
45 | |
|
46 | |
@Column(name="PRNCPL_PSWD") |
47 | |
private String password; |
48 | |
|
49 | |
@Column(name="ACTV_IND") |
50 | |
@Type(type="yes_no") |
51 | |
private boolean active; |
52 | |
|
53 | |
public String getPrincipalId() { |
54 | 0 | return this.principalId; |
55 | |
} |
56 | |
|
57 | |
public void setPrincipalId(String principalId) { |
58 | 0 | this.principalId = principalId; |
59 | 0 | } |
60 | |
|
61 | |
public String getPrincipalName() { |
62 | 0 | return this.principalName; |
63 | |
} |
64 | |
|
65 | |
public void setPrincipalName(String principalName) { |
66 | 0 | this.principalName = principalName.toLowerCase(); |
67 | 0 | } |
68 | |
|
69 | |
public String getEntityId() { |
70 | 0 | return this.entityId; |
71 | |
} |
72 | |
|
73 | |
public void setEntityId(String entityId) { |
74 | 0 | this.entityId = entityId; |
75 | 0 | } |
76 | |
|
77 | |
public String getPassword() { |
78 | 0 | return this.password; |
79 | |
} |
80 | |
|
81 | |
public void setPassword(String password) { |
82 | 0 | this.password = password; |
83 | 0 | } |
84 | |
|
85 | |
public boolean isActive() { |
86 | 0 | return this.active; |
87 | |
} |
88 | |
|
89 | |
public void setActive(boolean active) { |
90 | 0 | this.active = active; |
91 | 0 | } |
92 | |
|
93 | |
} |