-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Queries on inheritance mapping in hibernate
PostPosted: Mon Apr 03, 2006 10:32 pm 
Newbie

Joined: Mon Nov 08, 2004 4:05 am
Posts: 6
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.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 03, 2006 10:42 pm 
Newbie

Joined: Wed Oct 12, 2005 4:39 pm
Posts: 15
Location: India
Check this link:

http://www.hibernate.org/hib_docs/v3/re ... tance.html


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.