敬的世界

          常用鏈接

          統(tǒng)計(jì)

          最新評論

          Hibernate Mapping Class Inheritance

          SQL based models provide only has a relationships between entities. SQL database management systems dont support type inheritance -- and even when it's available, it's usually proprietary or incomplete

          There are four different approaches to representing an class hieritance hierarchy:

          ???- Table per concrete class with implicit polymorphism -- Use no explicit inheritance mapping, and default runtime polymorphic behavior.

          ???- Table per concrete class -- Discard polymorphism and inheritance relationships completely from the SQL schema.

          ???- Table per class hierarchy -- Enable polymorphism by denormalizing the SQL schema, and utilize a type discriminator column that holds type information.

          ???- Table per subclass -- Represent is a(inheritance) relationships as has a (foreign key) relationships.

          posted on 2008-11-01 15:17 picture talk 閱讀(332) 評論(0)  編輯  收藏


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


          網(wǎng)站導(dǎo)航:
          博客園   IT新聞   Chat2DB   C++博客   博問  
           
          主站蜘蛛池模板: 阿克苏市| 黔东| 荔波县| 长丰县| 千阳县| 湾仔区| 滕州市| 志丹县| 姜堰市| 广汉市| 诸暨市| 全南县| 秭归县| 涿鹿县| 普陀区| 天门市| 陆河县| 安化县| 罗山县| 新干县| 三河市| 永宁县| 保靖县| 德化县| 平陆县| 泾川县| 西华县| 淮安市| 武山县| 营山县| 公主岭市| 昌吉市| 福安市| 松潘县| 临猗县| 长春市| 德清县| 齐河县| 长寿区| 永寿县| 蒲城县|