2013年11月7日
摘要: 有如下两个实体类 , Student和Grade 为多对一关系。Student.java 1 @Entity 2 public class Student { 3 private Integer id; 4 private String name; 5 private Grade grade; 6 @Id 7 @GeneratedValue(strategy=GenerationType.AUTO) 8 public Integer getId() { 9 return id;10 }11 public void ... 阅读全文
posted @ 2013-11-07 23:39 喜欢凯的蓝 阅读(1131) 评论(0) 推荐(0) 编辑