-->
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: Xdoclet inheritance problem
PostPosted: Tue Jun 08, 2004 6:59 am 
Regular
Regular

Joined: Tue Jan 13, 2004 4:57 am
Posts: 83
I have a hierarchy such as

class A

class B extends A

abstract class C extends A

class D extends C
class E extends C

Class C is only a class that factors out logic from D and E, and as such has no persistent fields, nor has a table associated (while the rest of the hierarchy is mapped with joined-subclass).

I see that xdoclet only takes into account A and B, in the mapping generation, because in C I have no @hibernate.joined-subclass element (since there is no table): if I add the tag also the subclasses are included in the final A.hbm.xml, but with the added joined-subclass for C which is not needed (at least I think) and is indeed harmful (if I'm not mistaken it obliges me to add a corresponding table).

Is this true? Is there a different route to this that does not involve manual editing of the xdoclet file?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 14, 2004 11:28 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
You'll have to add a table for C

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 16, 2004 4:43 am 
Regular
Regular

Joined: Tue Jan 13, 2004 4:57 am
Posts: 83
emmanuel wrote:
You'll have to add a table for C


Ok, but is this required by hibernate or by xdoclet?
Thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 21, 2004 3:20 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Not sure, you'll have to test. Tell me, I'm interested.

_________________
Emmanuel


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.