2008年3月23日
摘要: 到底在哪用inverse="ture"? inverse属性默认是false的,就是说关系的两端都来维护关系。这个意思就是说,如有一个Student, Teacher和TeacherStudent表,Student和Teacher是多对多对多关系,这个关系由TeacherStudent这个表来表现。那么什么时候插入或删除TeacherStudent表中的记录来维护关系呢?在用h... 阅读全文
posted @ 2008-03-23 18:23 tyut 阅读(488) 评论(0) 推荐(0) 编辑
摘要: 如表 ------------------------------------------------- table1 | table2 | ------------------------------------------------- id name |id score | 1 lee |1 90 | 2 zhang |2 100... 阅读全文
posted @ 2008-03-23 10:56 tyut 阅读(22880) 评论(1) 推荐(2) 编辑