-->
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.  [ 4 posts ] 
Author Message
 Post subject: Nested Inheritance
PostPosted: Fri Mar 05, 2004 6:05 am 
Regular
Regular

Joined: Thu Feb 05, 2004 6:51 am
Posts: 50
Hi,

Just want to know if it is possible to nest in a joined-subclass another joined-subclass element because I have class which extend extended class?

Vlad


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 05, 2004 6:10 am 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
Yes it is.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 05, 2004 10:44 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
The DTD is your friend. It is well self-documented

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 09, 2004 7:13 am 
Newbie

Joined: Tue Jun 22, 2004 4:36 am
Posts: 3
Class A
^
| extends
|
Class B
^
| extends
|
Class C


Just for ducumentation:

Error message:
net.sf.hibernate.MappingException: Cannot extend unmapped class org.elena.evaluation.hibernate.ResponseElement
at net.sf.hibernate.tool.hbm2java.CodeGenerator.handleClass(CodeGenerator.java:147)
at net.sf.hibernate.tool.hbm2java.CodeGenerator.main(CodeGenerator.java:118)

If you receive this error message you may have problems with multiple inheritance.

Solution:
F. e. use Nested join-subclass
<join-subclass
....
<join-subclass
.....
</join-subclass>
</join-subclass>


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