-->
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: Deep inheritance
PostPosted: Wed Sep 26, 2007 9:02 am 
Newbie

Joined: Mon Sep 24, 2007 4:22 pm
Posts: 6
Location: Ukraine, Kharkiv
Can I create deep inheritance hierarchy and map it to NHibernate, like

Code:
class Base {..}

class Derived : Base {...}

class SubDerived : Derived {...}


and map each class to it's own table, or Base class to one table and Derived and SubDerived to another


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 26, 2007 10:47 am 
Regular
Regular

Joined: Fri Jan 20, 2006 7:45 pm
Posts: 97
Location: San Antonio, TX
Have you tried using joined-subclass in you mapping? I'm currently using it for table_per_class mapping. I've never tried using joined-subclass within a joined-subclass tag, but it should be a quick thing to test.

_________________
Dum spiro, spero
-------------------------------
Rate my post if it helps...


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.