Quote:
I get WrongClassExceptions when loading two objects with different types(from different tables) in the same session with the same primary key
Incorrect. This will happen (in 2.1.6 and prior) when, within a single session, Hibernate is asked to load the same database row twice and map it to two seperate classes. This is true whether you explicitly ask it to load a class instance, or if it needs to load a class instance via a mapped association.
Mapping two different classes to the same database row is a bad idea, in general; and prior to 2.1.7 it won't even work if you try to load that row into more than one class as I mentioned above.