新增Role类

新增类 net.wendal.nutzbook.bean.Role ,请自行补齐getter/setter

  1. package net.wendal.nutzbook.bean;
  2. import java.util.List;
  3. import org.nutz.dao.entity.annotation.ColDefine;
  4. import org.nutz.dao.entity.annotation.Column;
  5. import org.nutz.dao.entity.annotation.Id;
  6. import org.nutz.dao.entity.annotation.ManyMany;
  7. import org.nutz.dao.entity.annotation.Name;
  8. import org.nutz.dao.entity.annotation.Table;
  9. @Table("t_role")
  10. public class Role extends BasePojo {
  11. @Id
  12. protected long id;
  13. @Name
  14. protected String name;
  15. @Column("al")
  16. protected String alias;
  17. @Column("dt")
  18. @ColDefine(type = ColType.VARCHAR, width = 500)
  19. private String description;
  20. @ManyMany(from="role_id", relation="t_role_permission", target=Permission.class, to="permission_id")
  21. protected List<Permission> permissions;
  22. }