風雨無阻

          many-to-many映射

          <class name="Person">
              <id name="id" column="personId">
                  <generator class="native"/>
              </id>
              <set name="addresses" table="PersonAddress">
                  <key column="personId"/>
                  <many-to-many column="addressId"
                      class="Address"/>
              </set>
          </class>

          <class name="Address">
              <id name="id" column="addressId">
                  <generator class="native"/>
              </id>
          </class>
          create table Person ( personId bigint not null primary key )
          create table PersonAddress ( personId bigint not null, addressId bigint not null, primary key (personId, addressId) )
          create table Address ( addressId bigint not null primary key )

          posted on 2008-03-12 17:10 秋楓故事 閱讀(196) 評論(0)  編輯  收藏 所屬分類: 工作總結(jié)

          <2008年3月>
          2425262728291
          2345678
          9101112131415
          16171819202122
          23242526272829
          303112345

          導航

          統(tǒng)計

          常用鏈接

          留言簿(2)

          隨筆分類

          隨筆檔案

          新聞檔案

          搜索

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 乌兰浩特市| 郸城县| 婺源县| 宣汉县| 民权县| 绥德县| 瑞丽市| 屏山县| 仙居县| 醴陵市| 博乐市| 阜康市| 汾西县| 梁山县| 新余市| 泌阳县| 武鸣县| 南宁市| 进贤县| 丽水市| 饶河县| 上虞市| 新河县| 岚皋县| 黎平县| 乐业县| 泰兴市| 毕节市| 遵义县| 嘉定区| 大新县| 额尔古纳市| 东丰县| 南川市| 鄂尔多斯市| 绥宁县| 琼结县| 大厂| 昌黎县| 奉贤区| 抚远县|