Hibernate Annotations: 3.4.0.CR1
Hibernate Core: 3.3.0.CR1I have a complicated inheritance hierarchy that I've been able to use with the "table per concrete class" strategy. When using the "joined" inheritance strategy hibernate creates a case statement - as a way to determine the type of a row - with 143 when-then pairs, which is more than the oracle limit of 127.
The statement is of the form:
Code:
case when this_4_.id is not null then 4 when
this_10_.id is not null then 10 when this_16_.id is not null then 16 when
this_22_.id is not null then 22 when this_29_.id is not null then 29 when
this_36_.id is not null then 36 when this_41_.id is not null then 41 when
this_48_.id is not null then 48 when this_49_.id is not null then 49 when
this_54_.id is not null then 54 when this_65_.id is not null then 65 when
[..]
when
this_123_.id is not null then 123 when this_129_.id is not null then 129 when
this_2_.id is not null then 2 when this_6_.id is not null then 6 when
this_17_.id is not null then 17 when this_131_.id is not null then 131 when
this_1_.id is not null then 1 when this_.id is not null then 0 end as clazz_0_
from PF_Objekt
Is there some way to get around this limitation without changing the inheritence hierarchy and still using the "joined" strategy?