-->
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: XDoclet - Joined Subclass - Separate Package
PostPosted: Wed Oct 06, 2004 10:06 am 
Newbie

Joined: Wed Jul 28, 2004 3:20 pm
Posts: 16
Hello,

I have a class Foo which is persisted with Hibernate/XDoclet.

I have another class which subclasses Foo (call it Bar). Bar lives in another package. I'd like to use XDoclet to declare this as a joined-subclass. However, running xdoclet over it results in no mapping file being generated.

Here are the tags in the subclass

/**
* @author rmangi
*
* @hibernate.joined-subclass table="MyProductGroup"
* @hibernate.joined-subclass-key column="key"
*
*/


Is there a trick here that I'm not aware of, or is this even supported? XDoclet just completely ignores the subclass. If I put the two .java files in the same pacakge it works fine.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 06, 2004 3:39 pm 
Newbie

Joined: Wed Jul 28, 2004 3:20 pm
Posts: 16
Ok, more on this. I've made some progress. Adding "extends=package.SuperClass" to the @hibernate.joined-subclass tag allows xdoclet to find the superclass. However, this only works if the source code for the superclass is included in the fileset for the <hibernatedoclet> tag in Maven/Ant. Including the class file in the <classpath> doesn't seem to do anything.

We would really like to not have to link against the source code when creating subclasses like this. Is there a way to do this outside of including the source?

Thanks.


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.