Mapping for inheritance

          There are three main kinds of mapping for inheritance:
          1. table per class hirachy, for each subclass, use discriminator to distinguish different data, subclass specific property can not be null, only one table.
          2. table per subclass, there is a common table for super class, subclass table reference to super table through primary key, add relationship between tables.
          3. table per concrete class, generate too much redandance data, pk was generated by super class.


          some mix mapping is available.



          posted on 2007-05-14 13:41 Sheldon Sun 閱讀(135) 評論(0)  編輯  收藏


          只有注冊用戶登錄后才能發表評論。


          網站導航:
           
          <2007年5月>
          293012345
          6789101112
          13141516171819
          20212223242526
          272829303112
          3456789

          導航

          統計

          常用鏈接

          留言簿(3)

          隨筆檔案

          文章檔案

          搜索

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 澄江县| 鸡泽县| 来安县| 平原县| 漳平市| 搜索| 科技| 岳阳市| 天柱县| 和田市| 宣化县| 六安市| 仁化县| 阜宁县| 大兴区| 论坛| 华坪县| 临夏市| 十堰市| 英山县| 乌拉特中旗| 柘荣县| 鄯善县| 南昌县| 江安县| 台东市| 罗源县| 泽库县| 宣化县| 岳阳县| 西林县| 巴林左旗| 富锦市| 华容县| 商丘市| 宜君县| 阿瓦提县| 临潭县| 博罗县| 永泰县| 青田县|