[odb-users] Persisting class instantiated from a template

Balázs Bayer balazs.bayer at gmail.com
Fri Mar 24 18:27:22 EDT 2017


Hi Boris,

with

#pragma db object(ResultFloatSeven) definition
#pragma db member(ResultFloatSeven::Id) id

it is ok now.

Many thanks for your help, and best regards,
Balázs



On 22 March 2017 at 17:39, Boris Kolpackov <boris at codesynthesis.com> wrote:

> Hi Balázs,
>
> > #pragma db value(ResultFloatSeven) definition
> >
> > [...]
> >
> > ResultFloatSeven S(Values, Id);
> >
> > [...]
> >
> > db->persist(S);
>
> You cannot persist a value directly, only as part of an object. Please
> read the documentation.
>
> Boris
>


More information about the odb-users mailing list