Inheritance is limited: with ActiveRecord, I'm forced to use a mapping strategy called single table inheritance (see Resources), which is not always optimal.
继承也受到限制:使用ActiveRecord时,我被迫使用单表继承映射策略,而该策略并不总是最佳选择。
In single-table inheritance, there is a single database table that contains columns for both base and derived classes.
在单表继承中,一个数据库表同时包含基类和派生类的列。
In single-table inheritance, there is a single database table that contains columns for both base and derived classes.
在单表继承中,一个数据库表同时包含基类和派生类的列。
应用推荐