Re: Multi tables having a to-many relationship to the same table

Nat! <[email protected]> Thu, 27 Apr 2006 18:33:35 +0200
Newsgroups gmane.comp.web.webobjects.eof
Message-ID <[email protected]>
Here's how it can work.

Create an abstract entity "HistorySupport". Let it have a primary  
key. Join along this primary key a toMany relationship to your  
"ChangeHistory".
Subclass all entities, that should have a history from  
"HistorySupport." They consequently must all use that inherited  
primary key. So give it a generic name like "idR" and not schoolID.

Let EOF do the rest.

Ciao
    Nat!

      Jedenfalls sind zehn Fehlstarts hintereinander    [E. Fuchs]
           ein sehr interessanter Beweis
               fuer unsere Theorie
  von der natuerlichen Ueberlegenheit des Dezimalsystems