[odb-users] Re: Bug With Polymorphism Inheritance

Tolga HOŞGÖR fasdfasdas at gmail.com
Tue May 5 10:37:29 EDT 2015


I forgot the put 'polymorphic' and 'optimistic' directives in the Base
class pragma in the previous mail by the way.

On Tue, May 5, 2015 at 5:36 PM Tolga HOŞGÖR <fasdfasdas at gmail.com> wrote:

> Hello all,
>
> I think there is a bug with polymorphism inheritance. Consider the
> following:
>
> #pragma db object table("base")
> class Base {
> };
>
> #pragma db object table("derived")
> class Derived
>     : public Base {
> };
>
> Now, the generated SQL uses LEFT JOIN "Base"."member" which obviously
> results in error. Is there a way I can specify the Base table in the Drived
> class declaration?
>
> Thanks,
> Tolga.
>


More information about the odb-users mailing list