For example, if a data member is an STL vector of ints, what needs to be done to map it appropriately in
QxOrm and the Database? Does it need serialization? What should the type of the field be in the database?
- Code: Select all
class ExpTable
{
public:
std::vector<int> intVec_;
virtual ~ExpTable() {;}
};
- Code: Select all
namespace qx {
template <> void register_class(QxClass<ExpTable>& t)
{
t.data(&ExpTable::intVec, "intColl');
}
Thanks.