Well, this is probably a long shot, but here it goes.
In Java (JRE 1.6.0_26-b03), I have two classes, SuperControl and its subclass SubControl . Both must be persistent objects, and I use Hibernate Annotations to achieve this. I have approximately 210 classes that are saved correctly. Moreover, this is not so.
My problem is that SubControl refuses to inherit anything but SINGLE_TABLE . When I say βrefusesβ, I mean that the whole JRE crashes .
This is a bit problematic because I would prefer SuperControl be mapped to the SuperControl superclass. SuperControl can also be a permanent entity in its own right. The strange thing is that I have a precisely parallel hierarchy in my code elsewhere that works correctly.
This is what I want:
@Entity @MappedSuperclass public class SuperControl extends ItsSuperClass {
but he is bombing with an error
#
Without any hint of inheritance, Hibernate defaults to SINGLE_TABLE (which I can tell by creating a DTYPE column). I can explicitly indicate this without the JVM crashing.
@Entity @Inheritance(strategy=InheritanceType.SINGLE_TABLE) public class SuperControl extends ItsSuperClass {
Worst of all, if I remove the SubControl ENTIRELY class or even match it in the hibernate.cfg.xml file, the JVM still crashes. This leads me to think that there is some kind of hidden connection between SuperControl and SubControl . Maybe something is cached in Eclipse or the like. I restarted Eclipse, did a few clean and builds, and even restarted my machine, and the problem is still there.
Any ideas? I am working on this watch and have not gone anywhere.
Thanks!