風雨無阻

          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)  編輯  收藏 所屬分類: 工作總結

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

          導航

          統計

          常用鏈接

          留言簿(2)

          隨筆分類

          隨筆檔案

          新聞檔案

          搜索

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 武陟县| 桂平市| 洛隆县| 延吉市| 绥化市| 绥德县| 土默特右旗| 阜城县| 无棣县| 中方县| 平度市| 许昌县| 常州市| 通化市| 福建省| 保定市| 类乌齐县| 新蔡县| 安图县| 织金县| 汤原县| 温泉县| 明光市| 阿勒泰市| 湘潭县| 北川| 福州市| 金川县| 平遥县| 苍山县| 泸州市| 温宿县| 藁城市| 东辽县| 五河县| 宜兴市| 吉林省| 盐城市| 依兰县| 五常市| 屯留县|