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) 評論(0)  編輯  收藏


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


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

          導航

          統計

          常用鏈接

          留言簿(3)

          隨筆檔案

          文章檔案

          搜索

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 黄陵县| 洞口县| 乡城县| 云阳县| 卓资县| 井冈山市| 丹东市| 韶山市| 靖江市| 台前县| 百色市| 崇州市| 永修县| 苍梧县| 满城县| 伊宁市| 天祝| 麻江县| 修武县| 进贤县| 莱芜市| 綦江县| 都昌县| 图片| 尉氏县| 宁津县| 满城县| 灵宝市| 商都县| 漯河市| 阿勒泰市| 宣城市| 比如县| 清丰县| 威远县| 西贡区| 安吉县| 大田县| 明溪县| 沛县| 昌邑市|