策略3:每个具体类一个表(estates)。
我们的第三个,也是最后一个策略可能是三个策略当中最有想象力的:每个具体类一个表,抽象超类estate没有表。
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.
按类表:(可选)每个具体的子类映射到一个表,并且包含超类属性的列。
Table per-class: (Optional) Each concrete subclass is mapped to a table and contains columns for super class attributes.
按类表:(可选)每个具体的子类映射到一个表,并且包含超类属性的列。
Table per-class: (Optional) Each concrete subclass is mapped to a table and contains columns for super class attributes.
应用推荐