Hello,
Is it possible to have the same object in two subtables. Let's say I've got class User (stored in User table) and two classes UserType1 extends User (stored in User1 table) and UserType2 extends User (stored in User2 table). Now i've got the table wwwUser where is record with userid 6. This userid is in the table User1 and User2 because this user is UserType1 and also UserType2. How to solve this? Now I've got error:
Code:
org.hibernate.WrongClassException: Object with id: 6 was not of the specified subclass
Best regards,
Maciej Matecki