[odb-users] bug in generating schema for QList<QString>

abbas ali chezgi chezgi at yahoo.com
Thu Sep 27 05:21:25 EDT 2012


if we define QList<QString> in "value" struct ==> generated code dosnt contain any schema for that member. and nothing will be saved.

Group::members field in this code:

------------------------- sample.h

#include <QString>
#include <QList> 

#pragma db value
class Group
{
public:
    QString name;
    QList<QString> members;
};

#pragma db object
class Global
{
public:
    #pragma db id auto
    long long id_;
    QList<Group> groups;
};

--------------------------------


More information about the odb-users mailing list