摘要:
Hibernate使用Annotations最简单例子:hibernate.cfg.xml com.mysql.jdbc.Driver jdbc:mysql://127.0.0.1/testdb root ... 阅读全文
posted @ 2014-08-25 17:01
横渡
阅读(252)
评论(0)
推荐(0)
摘要:
Hibernate的多对多实现:hibernate.cfg.xml com.mysql.jdbc.Driver jdbc:mysql://127.0.0.1/testdb root 1 ... 阅读全文
posted @ 2014-08-25 14:57
横渡
阅读(501)
评论(0)
推荐(0)
摘要:
事实上one to many 和 many to one是一样的,这是一个相互的过程。hibernate.cfg.xml com.mysql.jdbc.Driver jdbc:mysql://127.0.0.1/testdb root... 阅读全文
posted @ 2014-08-25 11:50
横渡
阅读(451)
评论(0)
推荐(0)