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)  編輯  收藏


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


          網(wǎng)站導航:
           
          <2007年5月>
          293012345
          6789101112
          13141516171819
          20212223242526
          272829303112
          3456789

          導航

          統(tǒng)計

          常用鏈接

          留言簿(3)

          隨筆檔案

          文章檔案

          搜索

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 博白县| 九寨沟县| 仁化县| 洛浦县| 兴业县| 津南区| 普兰店市| 罗定市| 太康县| 德安县| 太谷县| 陈巴尔虎旗| 郧西县| 武川县| 肇庆市| 富裕县| 博白县| 大同市| 中山市| 南靖县| 厦门市| 西宁市| 宁陵县| 阿图什市| 黄冈市| 乌兰察布市| 达尔| 灌云县| 成武县| 曲麻莱县| 资溪县| 海原县| 日土县| 建湖县| 台州市| 巨野县| 依兰县| 泊头市| 广元市| 玉环县| 霍林郭勒市|