每个子类一张表 Table per subclass
每个具体类一张表 Table per concrete class
每个类一张表 Table per Class
每个类分层结构一张表 Table per class hierarchy
每个类型一张表 table-per-type
每个具体类型一张表 table-per-concrete type
每个类映射为一张表 One Class per Table
每个类层次结构一张表 Single Table per Class Hierarchy
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.
应用推荐