I use hibernate 4. I use single_table inheriatnce strategy for entities JuniorUser extended by ExpertUser. It is mapped to Answer entity with type JuniorUser.
When I call this getter I have hibernate proxy of JuniorUser retrieved. I can cast this proxy to type JuniorUser but I can't cast it to ExpertUser. Therefore I can't access properties specific to ExpertUser! Trying to cast proxy to ExpertUser I received error ClassCastException.
How can I retrieve properties specific to ExpertUser having hibernate proxy Of JuniorUser?
True person is moral, false is right!
subject: Problems mapping entities of single_table inheritance...