Hibernate version: 3.1
Hi,
I have a couple of basic queries on inheritance mapping in hibernate.
1. The mapping for one inheritance hierarchy is typically done in one hbm.xml file. Is it ok if we could do that across multiple files ? Basically, one hbm.xml file for each child in the hierarchy.
2. Does Hibernate support multiple levels of inheritance mapping ? Say I have this kind of hierarchy :
Item : id, name, description
Book extends Item : author, yearOfPublication
FictionBook extends Book : genre, heroName, heroineName
Each node in this hierarchy might have a table of its own in the DB. How can we map this in Hibernate ?
Any information or links to references would be most appreciated.
Thanks.
|