2009/8/16 Michael Van Canneyt <mich...@freepascal.org>: > > But that needs to be registered separately anyway, because this varies on > the storage back-end. The object-db mapping should never be in the object > itself, that is bad design.
+1 And what about classes that can be stored in various backends? For example, in tiOPF the same class can be stored in CSV, Tab delimited, XML or any SQL DB - all with a compiler define or parameter to the application at runtime. Also, foreign keys and primary keys don't mean anything to XML, CSV etc... Regards, - Graeme - _______________________________________________ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft.homeip.net/fpgui/ _______________________________________________ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel