-->
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.  [ 5 posts ] 
Author Message
 Post subject: subclass in different package results in no hbm generated
PostPosted: Tue Sep 13, 2005 12:49 pm 
Newbie

Joined: Wed Sep 07, 2005 8:22 am
Posts: 14
Hibernate version: 3.05

Why is it that if I have a subclass that is in a different package from the superclass and I use the xdoclet tag "@hibernate.joined-subclass ".
Then the hbm file does not get generated?

For example...

Code:
package org.model;
/**
*  @hibernate.class table="BaseClass "
*/
public abstract class BaseClass {
...
}

Code:
package org.model.sections;
/**
*  @hibernate.joined-subclass table="SubClassA"
*/
public class SubClassA extends BaseClass {
...
}


This results in XDoclet not generating the hbm for the class SubClassA.

Is this a XDoclet limitation, or a limitation of Hibernate?
I've read through Hiberante in Action and can't see any info on this.

Thanks
Jeff


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 13, 2005 12:51 pm 
Beginner
Beginner

Joined: Mon Oct 11, 2004 12:30 pm
Posts: 21
does it not put the subclasses in the same hbm file as the super class?


Top
 Profile  
 
 Post subject: opps.
PostPosted: Tue Sep 13, 2005 12:54 pm 
Newbie

Joined: Wed Sep 07, 2005 8:22 am
Posts: 14
OK, your right jvinson.

I feel like a proper fool now!

Thanks for the prompt reply.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 13, 2005 12:56 pm 
Beginner
Beginner

Joined: Mon Oct 11, 2004 12:30 pm
Posts: 21
credits?

I'm running low ;)


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 13, 2005 1:01 pm 
Newbie

Joined: Wed Sep 07, 2005 8:22 am
Posts: 14
done.

sorry, I wasnt paying attention.

Too overjoyed at getting my subclass thing working.

:-)


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