Hello,
I've the following inheritance structure :
Code:
@MappedSuperclass
public abstract class ClassA{
...
}
Code:
@Entity
@Inheritance(strategy = InheritanceType.JOINED)
@Table(name = "ClassB")
public abstract class ClassB extends ClassA{
...
}
Code:
@Entity
@Inheritance(strategy=InheritanceType.SINGLE_TABLE)
@DiscriminatorColumn(discriminatorType = DiscriminatorType.INTEGER)
@DiscriminatorValue(value="1")
@Table(name = "ClassC")
public class ClassC extends ClassB{
...
}
Code:
@Entity
@DiscriminatorValue(value = "2")
public class ClassD extends ClassC{
...
}
As expected the hibernate autoschema creates 2 tables : ClassA and ClassB. However table ClassB doesn't contain a Dtype column.
What am I doing wrong?
Thanks,
Steven