提交 | 用户 | 时间
|
fd2207
|
1 |
package com.jcdm.system.domain; |
懒 |
2 |
|
|
3 |
import org.apache.commons.lang3.builder.ToStringBuilder; |
|
4 |
import org.apache.commons.lang3.builder.ToStringStyle; |
|
5 |
|
|
6 |
/** |
|
7 |
* 用户和角色关联 sys_user_role |
|
8 |
* |
|
9 |
* @author jc |
|
10 |
*/ |
|
11 |
public class SysUserRole |
|
12 |
{ |
|
13 |
/** 用户ID */ |
|
14 |
private Long userId; |
|
15 |
|
|
16 |
/** 角色ID */ |
|
17 |
private Long roleId; |
|
18 |
|
|
19 |
public Long getUserId() |
|
20 |
{ |
|
21 |
return userId; |
|
22 |
} |
|
23 |
|
|
24 |
public void setUserId(Long userId) |
|
25 |
{ |
|
26 |
this.userId = userId; |
|
27 |
} |
|
28 |
|
|
29 |
public Long getRoleId() |
|
30 |
{ |
|
31 |
return roleId; |
|
32 |
} |
|
33 |
|
|
34 |
public void setRoleId(Long roleId) |
|
35 |
{ |
|
36 |
this.roleId = roleId; |
|
37 |
} |
|
38 |
|
|
39 |
@Override |
|
40 |
public String toString() { |
|
41 |
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) |
|
42 |
.append("userId", getUserId()) |
|
43 |
.append("roleId", getRoleId()) |
|
44 |
.toString(); |
|
45 |
} |
|
46 |
} |