sdm wrote:
I've just tried this, and you can persist a RealEmployee using only an Employee mapping file.
But obviously only the properties inherited from Employee are persisted.
I was about to tried myself. Thanks for trying. You saved me the time :)
Yeah, RealEmployee data members are all transient, so I won't need to persist them.
It makes sense it should work. I have not yet looked at Hibernate code but it must traversing the inheritance hierarchy and map the class at each level, if one was available.