[odb-users] bug in generating schema for QList<QString>
Boris Kolpackov
boris at codesynthesis.com
Thu Sep 27 06:28:58 EDT 2012
Hi,
abbas ali chezgi <chezgi at yahoo.com> writes:
> 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:
>
> #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;
> };
ODB (as most other ORMs) does not support containers of containers. In
this case, Group contains a container and is itself used as an element
of a container. See Chapter 5, "Containers" in the ODB manual for details.
Boris
More information about the odb-users
mailing list