From: Peter Ertl Date: 2006-06-29T02:51:22+09:00 Subject: Re: How to model Hibernate multi-table inheritance with ActiveRecord? Read about polymorphic associations... here's an example http://www.fromdelhi.com/2006/06/15/polymorphic-association-in-rails/ -------- Original-Nachricht -------- Datum: Thu, 29 Jun 2006 02:11:05 +0900 Von: Marcus Andersson An: ruby-talk@ruby-lang.org Betreff: Re: How to model Hibernate multi-table inheritance with ActiveRecord? > Alex Young skrev: > > I'd have SomeAsset and AnotherAsset instances each hold a delegate > > Asset object that they proxy any calls they can't answer themselves > > to. I've played around a little with trying to implement a full class > > table inheritance scheme for AR on that basis, but never really had > > enough need for it myself to polish it up. > > > If I do like that I have to search in several different tables when I > want to search for assets when I don't care about the type? Or did I > misunderstand? > > /Marcus >