<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    Inheritance strategy

    There are three kinds of basic strategies for inheritence mapping:
    1. table per hierarchy.
    2. table per subclass.
    3. table per concreteclass.

    Table structure maybe the root reason to determine which kind strategy will be used.

    Table per hierarchy:
    With subclass element.
    A discriminator column will be used to distinguish subclass.
    Limitation: no not null constraint on sub class's property.
    Fault: redandance data will be generated.

    Table per subclass:
    With joined-class elment.
    There are tables for super class and each subclass, for every subclass, key elemnt is used to referenced to super class's primary key, and all common properties will be stored in super table. The relation between super table and sub table is one-to-one.
    Fault: complex table structure.


    Table per concrete class:
    With union-class elemnt.
    Super class responsible for genrate id and all common properties wich will stored in sub table.
    Fault: redandance data will be generated.
    Limitation: all common column should used the same column name for the properties are defined in super class.

    posted on 2007-06-01 10:55 Sheldon Sun 閱讀(256) 評論(0)  編輯  收藏


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


    網站導航:
     
    <2007年6月>
    272829303112
    3456789
    10111213141516
    17181920212223
    24252627282930
    1234567

    導航

    統計

    常用鏈接

    留言簿(3)

    隨筆檔案

    文章檔案

    搜索

    最新評論

    閱讀排行榜

    評論排行榜

    主站蜘蛛池模板: 好男人www免费高清视频在线| 青青操免费在线视频| 久热中文字幕在线精品免费| 亚洲国产精品一区二区第一页| 深夜福利在线免费观看| 国产片免费福利片永久| 亚洲国产成人久久一区二区三区| 成年女性特黄午夜视频免费看| 亚洲 欧洲 自拍 另类 校园| 黄页网站免费观看| 亚洲а∨天堂久久精品9966| 成人性生交大片免费看午夜a| 激情内射亚洲一区二区三区爱妻| 黄色片在线免费观看 | 扒开双腿猛进入爽爽免费视频 | 亚洲成A人片在线播放器| 日韩免费精品视频| 国产精品亚洲四区在线观看| 成人在线视频免费| 九九全国免费视频| 久久影视国产亚洲| 无码人妻精品中文字幕免费| 亚洲高清无在码在线无弹窗 | 免费va人成视频网站全| 无码AV动漫精品一区二区免费| 国产成人综合亚洲AV第一页| 成人性生交大片免费看好| 97se亚洲综合在线| 性盈盈影院免费视频观看在线一区| 亚洲AV无码之国产精品| 亚洲一区二区高清| 91精品国产免费久久国语麻豆| 亚洲人成网站在线播放2019| 国产乱辈通伦影片在线播放亚洲| 在线播放免费人成毛片乱码 | 亚洲一区二区无码偷拍| 免费一级肉体全黄毛片| 毛片在线播放免费观看| 亚洲综合偷自成人网第页色| 亚洲福利在线播放| 1区2区3区产品乱码免费|