1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package org.kuali.rice.kim.bo.role.impl; |
17 | |
|
18 | |
import org.hibernate.annotations.Type; |
19 | |
import org.kuali.rice.krad.bo.Inactivateable; |
20 | |
import org.kuali.rice.krad.bo.PersistableBusinessObjectBase; |
21 | |
|
22 | |
import javax.persistence.*; |
23 | |
|
24 | |
|
25 | |
|
26 | |
|
27 | |
@Entity |
28 | |
@Table(name="KRIM_ROLE_PERM_T") |
29 | 0 | public class RolePermissionImpl extends PersistableBusinessObjectBase implements Inactivateable{ |
30 | |
|
31 | |
private static final long serialVersionUID = 1L; |
32 | |
|
33 | |
@Id |
34 | |
@Column(name="ROLE_PERM_ID") |
35 | |
protected String rolePermissionId; |
36 | |
@Column(name="ROLE_ID") |
37 | |
protected String roleId; |
38 | |
@Column(name="PERM_ID") |
39 | |
protected String permissionId; |
40 | |
@Type(type="yes_no") |
41 | |
@Column(name="ACTV_IND") |
42 | |
protected boolean active; |
43 | |
|
44 | |
@OneToOne(targetEntity=KimPermissionImpl.class, fetch = FetchType.EAGER, cascade = { }) |
45 | |
@JoinColumn(name = "PERM_ID", insertable = false, updatable = false) |
46 | |
protected KimPermissionImpl kimPermission; |
47 | |
|
48 | |
public KimPermissionImpl getPermission() { |
49 | 0 | return kimPermission; |
50 | |
} |
51 | |
|
52 | |
public String getPermissionId() { |
53 | 0 | return permissionId; |
54 | |
} |
55 | |
|
56 | |
public String getRoleId() { |
57 | 0 | return roleId; |
58 | |
} |
59 | |
|
60 | |
public String getRolePermissionId() { |
61 | 0 | return rolePermissionId; |
62 | |
} |
63 | |
|
64 | |
public void setPermissionId(String permissionId) { |
65 | 0 | this.permissionId = permissionId; |
66 | 0 | } |
67 | |
|
68 | |
public void setRoleId(String roleId) { |
69 | 0 | this.roleId = roleId; |
70 | 0 | } |
71 | |
|
72 | |
public boolean isActive() { |
73 | 0 | return this.active; |
74 | |
} |
75 | |
|
76 | |
public void setActive(boolean active) { |
77 | 0 | this.active = active; |
78 | 0 | } |
79 | |
|
80 | |
public void setRolePermissionId(String rolePermissionId) { |
81 | 0 | this.rolePermissionId = rolePermissionId; |
82 | 0 | } |
83 | |
|
84 | |
|
85 | |
|
86 | |
|
87 | |
public KimPermissionImpl getKimPermission() { |
88 | 0 | return this.kimPermission; |
89 | |
} |
90 | |
|
91 | |
|
92 | |
|
93 | |
|
94 | |
public void setKimPermission(KimPermissionImpl kimPermission) { |
95 | 0 | this.kimPermission = kimPermission; |
96 | 0 | } |
97 | |
|
98 | |
} |