摘要: 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() { ... 阅读全文
posted @ 2012-08-31 17:11 心意合一 阅读(291) 评论(0) 推荐(0) 编辑