示例#1
0
  /** 测试 通过roleId查询角色信息 */
  @Test
  public void Test_queryPersonRoleInfoById() {
    PersonRoleDaoImpl prdi = new PersonRoleDaoImpl();
    PersonRole pRole = new PersonRole();

    pRole = prdi.queryPersonRoleInfoById(2);
    System.out.println(
        pRole.getRoleId() + "," + pRole.getRoleName() + "," + pRole.getAuthority_RoleId());
  }
示例#2
0
  /** 测试 遍历全部角色信息 */
  @Test
  public void Test_queryPerosonRoleInfo() {
    PersonRoleDaoImpl prdi = new PersonRoleDaoImpl();

    List<PersonRole> pRoleList = new ArrayList<PersonRole>();

    pRoleList = prdi.queryPerosonRoleInfo();

    for (PersonRole personRole : pRoleList) {
      System.out.println(
          personRole.getRoleId()
              + ","
              + personRole.getRoleName()
              + ","
              + personRole.getAuthority_RoleId());
    }
  }