> This is allways something I've had a problem understdaning.  If you go to
a
> pure object model how do you get your objects to be persistent into a
> relational db, like Interbase?

Its not _real_ O-R mapping - you need something else for that :)
>
> Is there an easy answer?  Does Delphi provide something to help with this?
> Should I just dump Delphi and use Jade?

something like:

type
  IDBStorage = interface
    function loadFromDB(const key : string): boolean;
    function saveToDB : boolean;
    ....
  end;

  TCustomer = class(TObject,IDBStorage)
  (implement stuff here)
    property name : string read whatever write whateverelse;
  end;

if (somecustomer as IDBStorage) <> nil then
  someCustomer.saveToDB;

I think you can get the idea....

N

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

Reply via email to