Subj : Persistency frameworks ? To : comp.programming From : lothar.behrens@lollisoft.de Date : Sat Sep 24 2005 09:25 am Hi, I am thinking about my configuration data, that resides in a database. So there are spread around many SQL queries to get the data out. What is the best to fasten up the data retrival ? Make the data persistent in another format/file without a complete rewrite of my class structure ? Best way of syncing the data from the database and the one in any file ? I think about macros in a C++ environment like this: class classname { PERSISTENCY_BEGIN_STATIC_DATA(classname) char[100] data1, char[10] data2, int data3 PERSISTENCY_END_STATIC_DATA PERSISTENCY_BEGIN_AGREGATED_DATA(classname) PersistentClassA *data1, PersistentClassB *data2 PERSISTENCY_END_AGREGATED_DATA DECLARE_PERSISTENCY(classname) }; This simply would implement a stream based persistency, but don't care about syncing the data with them in a database. It also implies creation of code to read configuration data into a memory based representation. Are these requirements all togehter possible ? Where to read on for similar issues ? Thanks, Lothar .