摘要:
hibernate延迟加载:一个person对应多个school,使用hibernate处理关联关系:T_PERSON表:idnameage1person111T_SCHOOL表:idschoolNamepersonId1school112school213school31person类:public class Person { public Person(){} private int id; private String name; private int age; private Set schools = new HashSet(); public int getId() { ... 阅读全文