③ 每个具体类一张表(table per concrete class),有多少个子类就有多少张表。 第一种方式属于单表策略,其优点在于查询子类对象的时候无需表连接,查询速度快,适合多态查询;缺...
基于459个网页-相关网页
Strategy 3: One table per concrete class (Estates).
策略3:每个具体类一个表(estates)。
Our third and last strategy is probably the most imaginative of all: having one table per concrete class and none for the Estate abstract superclass.
我们的第三个,也是最后一个策略可能是三个策略当中最有想象力的:每个具体类一个表,抽象超类estate没有表。
Table per Concrete Class using Implicit polymorphism.
4使用隐式多态实现每个具体类一张表。
应用推荐