[odb-users] Nested pointers in relationship
Boris Kolpackov
boris at codesynthesis.com
Thu Mar 12 10:19:33 EDT 2015
Hi Nicholas,
Nicholas Cremonesi <nicholas.cremonesi at gmail.com> writes:
> odb::query<C> qry(odb::query<C>::objb->obja->valuea == "Test");
In object queries ODB only supports one level of relationships
for performance reasons. If you need to go further, as in the
example above, then you will need to use a view. In 2.4.0 we
have added Object Loading Views with the main use-case being
exactly this. See the manual for details.
Boris
More information about the odb-users
mailing list