I have the following tables:
---Hierarchy 1: Table per subclass without discriminator---
T1,T2,T3
T1
PK-Identity
T2
PK- is FK from T1
T3
PK- is FK from T1
---END: Hierarchy 1---
---Hierarchy 2: Table per hierarchy---
T3
T3
PK- is FK from T1
is_simple, type = bit. (not mentioned in
I don't think you can use a bit typed column as the discriminator column. In
fact, you don't need to specify the column and value at all, Hibernate will
just create one automatically if you leave it out. Since the inner workings
of the inheritance implementation are completely hidden, this
2 matches
Mail list logo