> 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?
>
> Is there an easy answer? Does Delphi provide something to
> help with this?
There are many ways to achieve this.
1. Stream your properties into blob fields.
2. Variant of (1), in addition to streaming, save your key fields into
"real" relational database fields. This will solve the foreign key
problems.
The problem with (1) and (2) is when it comes to generating reports.
3. Write a translator to map your properties to fields in the DB. This is
a lot more work, but solves the problems in (1) & (2). However, you will
need to update your translator / DB if you make changes to fields in your
business objects.
> Should I just dump Delphi and use Jade?
If you must go the JADE way, I would rather use one of those Java OO-DBs.
Regards,
Dennis.
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz