摘要: 1. 1对多,部门--员工 为例, 多的一方建外键。domain,建立bean对象public class Department { private String id; private String name; private Set employees = new HashSet(); public String getId() { return id; } public void setId(String id) { this.id = id; } public String getName() { return name; } public void setName(Strin... 阅读全文
posted @ 2013-12-24 15:27 今晚打酱油_ 阅读(650) 评论(0) 推荐(0) 编辑