-->
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.  [ 3 posts ] 
Author Message
 Post subject: Multiple Inheritance Levels / SubClass
PostPosted: Tue Nov 08, 2005 9:04 pm 
Beginner
Beginner

Joined: Tue Oct 25, 2005 2:44 am
Posts: 20
Location: Sydney, Australia
Hi, a question about subclasses:

I have a class hierarchy that extends up to four levels deep, i.e.

class abstract BaseClass1
class abstract BaseClass2 : BaseClass1
class abstract BaseClass3 : BaseClass2

The classes I then implement inherit from a particular level depending on their capabilities:

class RealClass1 : BaseClass2 (discrimator-value = "1")
class RealClass2 : BaseClass3 (discrimator-value = "2")
etc

If I'm correct in that you can't have SubClass elements nested inside SubClass elements, does this mean I have to explicitly map each classes fields or is there a better way to map this?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 09, 2005 11:16 am 
Contributor
Contributor

Joined: Thu May 12, 2005 9:45 am
Posts: 593
Location: nhibernate.org
You can nest SubClass elements inside SubClass elements...

_________________
Pierre Henri Kuaté.
Get NHibernate in Action Now!


Top
 Profile  
 
 Post subject:
PostPosted: Sun Nov 13, 2005 10:41 pm 
Beginner
Beginner

Joined: Tue Oct 25, 2005 2:44 am
Posts: 20
Location: Sydney, Australia
Sweet :D


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.