摘要:
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... 阅读全文