摘要:
示例代码: Customer.javapackage cn.itcast.many2onedouble;import java.util.HashSet;import java.util.Set;/** * 一的一端 */@SuppressWarnings("serial")public class Customer implements java.io.Serializable { private Integer id; private String name; //一个客户对应多个订单 private Set orderes=new HashSet(0); public 阅读全文