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 閱讀(137) 評(píng)論(0)  編輯  收藏


          只有注冊(cè)用戶(hù)登錄后才能發(fā)表評(píng)論。


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

          導(dǎo)航

          統(tǒng)計(jì)

          常用鏈接

          留言簿(3)

          隨筆檔案

          文章檔案

          搜索

          最新評(píng)論

          閱讀排行榜

          評(píng)論排行榜

          主站蜘蛛池模板: 聂拉木县| 攀枝花市| 鸡东县| 昌图县| 海城市| 托克逊县| 宣威市| 大同市| 沈丘县| 台安县| 友谊县| 醴陵市| 垫江县| 独山县| 英吉沙县| 紫云| 霸州市| 乌什县| 襄汾县| 家居| 瑞丽市| 鲁甸县| 张家界市| 宁海县| 金门县| 东乡| 阳江市| 顺平县| 砚山县| 桦南县| 合作市| 浦县| 大庆市| 来凤县| 酉阳| 贵阳市| 彭阳县| 彩票| 西藏| 西青区| 荃湾区|