Hi,
I'm having a problem with two one-to-many associations. These associations are with two subclasses of the same object. The problem occurs when I load my object, when Hibernate.initilize is executed an exception is thrown: org.hibernate.WrongClassException: Object with id: 4700.
The id refers to an object of the other association. I saw the log and actually the id of the discriminator isn't in the log, i.e, the static method initialize is loading the superclass.
Does Hibernate.initialize method load only the superclass?
Inheritance: Single table strategy.
Hibernate 3.2
Annotations
|