org.nutz.integration.shiro.realm.bean.Role Maven / Gradle / Ivy
package org.nutz.integration.shiro.realm.bean;
import java.util.List;
import org.nutz.dao.entity.annotation.ManyMany;
import org.nutz.dao.entity.annotation.Table;
@Table("roles")
public class Role extends AbstractShiroBean {
@ManyMany(from="role_id", relation="role_permission", target=Permission.class, to="permission_id")
private List permissions;
public List getPermissions() {
return permissions;
}
public void setPermissions(List permissions) {
this.permissions = permissions;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy