hibernate 多对多关系详解(包括中间表,一对多字表)
2012-05-25 11:13:59 来源:WEB开发网核心提示: } *** CLASS EVENT ***publicclass Event { private Long id; //主键IDprivate Date date; //属性private Set<Person> participants = new HashSet<Person>(); /
}
*************** CLASS EVENT ***************
publicclass Event {
private Long id; //主键ID
private Date date; //属性
private Set<Person> participants = new HashSet<Person>(); //与表Person_Event 对应字段的属性,道理跟上面一样
private String title; //属性
更多精彩
赞助商链接