4使用隐式多态实现每个具体类一张表。
采用混合策略,例如“每个类层次一张表”中嵌入“每个子类一张表”,这样可以利用不同策略的优势。
Mixing strategies such as "Table per Subclass" embedded in "Table per class Hierarchy" so that you can take advantages of different strategies.
“使用隐式多态实现每个具体类一张表”这种做法并不推荐,因为其配置过于繁缛、使用“any”元素的复杂关联语法和隐式查询的潜在危险性。
"Table per Concrete Class using implicit Polymorphism" is not recommended due to its verbose configurations, complex association syntax using "any" element and potentially dangerous implicit queries.
这种方法最大的好处是,它仍然能相当容易地执行专门报告,只要您所需的有关单一类的所有数据都只存储在一张表中。
The biggest advantage to this approach is that it is still fairly easy to perform AD hoc reporting, given that all the data you need about a single class is stored in only one table.
使用这种方法,为每个类创建一张表,它的属性是OID和特定于该类的属性。
With this approach you create one table per class, the attributes of which are the OID and the attributes that are specific to that class.
使用这种方法,为每个类创建一张表,它的属性是OID和特定于该类的属性。
With this approach you create one table per class, the attributes of which are the OID and the attributes that are specific to that class.
应用推荐