[odb-users] Object ID and unidirectional to-one relationships

Nicolas ALBEZA n.albeza at gmail.com
Mon Jun 27 04:18:20 EDT 2011

The problem is i can't see how to "merge" my two fields (integer id and
shared_ptr<primary_table_class>) into one.

2011/6/27 Boris Kolpackov <boris at codesynthesis.com>

> Hi Nicolas,
> Nicolas ALBEZA <n.albeza at gmail.com> writes:
> > I was wondering if it was possible for an object ID to be a foreign key
> (id
> > used to map the primary table). It could save some bytes in my tables,
> and
> > allow me to use find() more often.
> I don't see any problem doing this. You will have to provide a custom
> database schema but I assume you are already doing this.
> Boris

ALBEZA "Pause" Nicolas

More information about the odb-users mailing list