Hi all,
I have the following hierarchy model:
abstract class A class B extends A class C extends A abstract class D extends A class E extends D class F extends D
I setup the class A inheritance as JOINED, and as SINGLE_TABLE the class D. When Hibernate execute a query over this entities, it doesn't use the class D configuration, so it tries to find over the E and F tables, that of course don't exist. Also, I tried using the @SecondaryTable annotation in the class D, but doesn't work when Hibernate inserts values over E and F tables.
There is any workaround to make this work?
Thanks, Jorge.
|