[odb-users] Composite value object id
Boris Kolpackov
boris at codesynthesis.com
Thu May 12 19:29:04 EDT 2016
Hi Artem,
Артём Бодрин <abodrin at gmail.com> writes:
> I misunderstood something?
Yes. You cannot make a member inside a composite value type an object id
but you can make a member inside an object which is of a composite value
type an object id.
#pragma db value
struct point
{
#pragma db id // error
int x;
int y;
};
#pragma db value
struct circle
{
#pragma db id // ok
point center;
};
See also this commit for some upcoming enhancements in this area:
http://scm.codesynthesis.com/?p=odb/odb.git;a=commit;h=80b868be1e7c249daa714b0c7a5f87694edb8664
Boris
More information about the odb-users
mailing list