![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Hibernate、JPA
wengzhiyou001
这个作者很懒,什么都没留下…
展开
-
@ManyToOne 和@oneToMany中@@JoinColumn的区别
@ManyToOne中是在本类对应的数据库表中生成例如[c-sharp] view plaincopy@Entity @Table(name="score") public class Score { private int id; private Student student;转载 2014-10-28 13:33:17 · 4048 阅读 · 0 评论 -
JPA实现一对多(OneToMany)关联
url :http://blog.sina.com.cn/s/blog_6826662b01016p0z.html1.考试类 @Entitypublic classExam implementsSerializable { private static final long serialVersionUID= 1L;转载 2014-12-20 17:19:27 · 811 阅读 · 0 评论