You can use rtti and create a base class that knows how to save/load itself from sql database...
2012/2/26 Luciano de Souza <luchya...@gmail.com>: > Actually, reading the tiOPF, I found the support for Firebird, Microsoft SQL > Server, Oracle, but not for PostgreSQL. This is the first reason. I really > don't know how proper tiOPF is when we focuses on CGI development. At a > first look, the project seemed to be very complex to use, but of course, I > may be wrong. > > > Em 26-02-2012 13:29, Michael Van Canneyt escreveu: > >> >> >> On Sun, 26 Feb 2012, Luciano de Souza wrote: >> >>> Hello all, >>> >>> For desktop environments, there are mature projects on data persistance. >>> Press Objects, TiOPF... desktop developers can be proud of the tools they >>> have. >>> >>> What about CGI environments? Is there something already developed? Yes, >>> we can use SQLDB. It's really a very good component. However, we need to >>> write lots of SQL. The dream would be something like: >>> >>> user := TUser.create; >>> user.name := 'Luciano'; >>> user.age := 36; >>> user.insert; >> >> >> Why not use tiOPF for this as well ? It works just as well in CGI >> environments. >> >> Michael. >> _______________________________________________ >> fpc-pascal maillist - fpc-pascal@lists.freepascal.org >> http://lists.freepascal.org/mailman/listinfo/fpc-pascal >> > > _______________________________________________ > fpc-pascal maillist - fpc-pascal@lists.freepascal.org > http://lists.freepascal.org/mailman/listinfo/fpc-pascal _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal