📄 role.java
字号:
/**
*
*/
package com.qrsx.qrsxcrm.model;
import java.util.Set;
/**
* 角色实体对象 与权限为多对多
*
* @author Administrator
*
*/
public class Role {
private String id; // 主键
private String roleName; // 角色名称
private String description; // 角色描述
private Set<User> users; // 及联一个用户集合
private Set<Power> powers; //及联一个权限集合
/**
* @return the description
*/
public String getDescription() {
return description;
}
/**
* @param description
* the description to set
*/
public void setDescription(String description) {
this.description = description;
}
/**
* @return the id
*/
public String getId() {
return id;
}
/**
* @param id
* the id to set
*/
public void setId(String id) {
this.id = id;
}
/**
* @return the roleName
*/
public String getRoleName() {
return roleName;
}
/**
* @param roleName
* the roleName to set
*/
public void setRoleName(String roleName) {
this.roleName = roleName;
}
/**
* @param powers the powers to set
*/
public void setPowers(Set<Power> powers) {
this.powers = powers;
}
/**
* @return the powers
*/
public Set<Power> getPowers() {
return powers;
}
/**
* @return the users
*/
public Set<User> getUsers() {
return users;
}
/**
* @param users the users to set
*/
public void setUsers(Set<User> users) {
this.users = users;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -