日期:2014-05-16 浏览次数:20500 次
01 |
public class User {
|
02 |
???? private Long id;
|
03 |
???? private String name;
|
04 |
? ? |
05 |
???? public Long getId() { return id; }
|
06 |
???? public void setId(Long id) { this .id = id; }
|
07 |
? ? |
08 |
???? public String getName() { return name; }
|
09 |
???? public void setName(String name) { this .name = name; }
|
10 |
} |
01 |
public class Group {
|
02 |
???? private Long id;
|
03 |
???? private String name;
|
04 |
???? private List<User> users = new ArrayList<User>();
|