[odb-users] PKs and FKs at the same time

Nicholas Cremonesi nicholas.cremonesi at gmail.com
Thu Mar 19 10:48:51 EDT 2015


Hello,

I have to define a column (let's call it 'col_B') which is both Primary Key
of 'Class_B' and Foreign Key referencing 'Class_A', so I tried to define it
this way:

#pragma db id
shared_ptr<Class_A> col_B_;

but compiling with ODB give me a lot of errors. Is this implementation
unable to do?


More information about the odb-users mailing list