1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.apache.ibatis.submitted.cursor_nested;
17
18 import java.util.List;
19
20 public class User {
21
22 private Integer id;
23 private String name;
24 private List<String> groups;
25 private List<String> roles;
26
27 public List<String> getRoles() {
28 return roles;
29 }
30
31 public void setRoles(List<String> roles) {
32 this.roles = roles;
33 }
34
35 public List<String> getGroups() {
36 return groups;
37 }
38
39 public void setGroups(List<String> groups) {
40 this.groups = groups;
41 }
42
43 public Integer getId() {
44 return id;
45 }
46
47 public void setId(Integer id) {
48 this.id = id;
49 }
50
51 public String getName() {
52 return name;
53 }
54
55 public void setName(String name) {
56 this.name = name;
57 }
58
59 @Override
60 public String toString() {
61 return "User{" + "id=" + id + ", name='" + name + '\'' + ", groups=" + groups + ", roles=" + roles + '}';
62 }
63 }