-->
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: Abstract base class inheritance w/ XDoclet
PostPosted: Mon Jul 26, 2004 4:26 pm 
Newbie

Joined: Wed May 12, 2004 10:24 am
Posts: 11
Is there some issue with XDoclet regarding abstract classes? Converting old persistence framework over into Hibernate and am getting a "Misses ID property" error from XDoclet.

Our framework looks like this

abstract class Component .... {
String id;
/**
* @hibernate.id column="id"
* .....
*/
getId();
setId();
.
.
.
}

abstract class Trackable .... {
(no hibernate-persisted fields)
}

Most of the work has been with business objects which extend Component; these have been mapping fine with no problems. However now when I try to extend Trackable instead I get the error above. It appears that the id tag from Component is not making it through Trackable to the end object.

Both of these classes are in the same package so they *should* both be getting included by the <fileset> tags in Ant. In addition, I tried changing the extends on the objects which require Trackable to Component; they generated fine.

Anyone else have this problem or a good solution? Unfortunately since I'm working with a legacy framework I don't have a lot of wiggle room on the base classes.

Thanks in advance for any help.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 27, 2004 4:56 pm 
Newbie

Joined: Wed May 12, 2004 10:24 am
Posts: 11
Figured it out myself. XDoclet certainly does not do what I expected, it did not qualify Component properly. When I explicitly imported Component into Trackable everything was golden.


Top
 Profile  
 
 Post subject: Abstract base class inheritance w/ XDoclet
PostPosted: Tue Oct 05, 2004 4:39 pm 
Newbie

Joined: Thu Jul 22, 2004 11:23 am
Posts: 14
Hi,

I beleive another user made this work by setting the directories that XDoclet uses to include the directory that held the base class. I'm not sure if this relates to your problem but the post is a page or 2 forward in the forum. In that case, the main issue was the directory as they wanted to separate the base class in the directory structure and I'm not sure if it was abstract, hope that helps...

-=j=-


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.