I agree that the test works with different join columns. But the resulting table looks strange: for each subclass i have to use it's own join column pointing to the same owning table:
I do not see why i should have an extra column in my table besides the DTYPE. The test with the same column also works if i use the hibernate specific annotation @DiscriminatorOptions(force = true) in the super class:
I'm still not convinced that these "solutions" are the way to go, especially not after playing with other JPA implementations.
|