Displaying 1 result from an estimated 1 matches for "some_asset".
2006 Jun 27
0
How to model Hibernate multi-table inheritance with ActiveRecord?
Hi
I have this "old" database mainly modeled for Hibernate. The java model
has something called Asset. Asset is inherited by SomeAsset and
AnotherAsset and the similar stuff is in the asset table and the
specific data for SomeAsset is in table some_asset and for AnotherAsset
in another_asset. This is then reflected in hibernate using a
<joined-subclass/> element.
What would be the best way to model this in ActiveRecord? I cannot
change the exisiting database structure beyond adding new columns (ie I
cannot move values from the join table...