[odb-users] Re: Bug With Polymorphism Inheritance

Tolga HOŞGÖR fasdfasdas at gmail.com
Tue May 5 11:19:16 EDT 2015


Please ignore this issue. It appears that it was because of a problem in
the build system.

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

> 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