-->
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.  [ 6 posts ] 
Author Message
 Post subject: middlegen: doesn't support "implements" attribute
PostPosted: Wed Jun 29, 2005 6:30 pm 
Newbie

Joined: Fri May 06, 2005 5:11 pm
Posts: 14
Location: San Francisco
Hello,
I am using middlegen 2.1 and when I try to add "implement" attribute for hibernate tag under middlegen action of the build file, I get the below error:

Class middlegen.plugins.hibernate.HibernatePlugin doesn't support the "implements" attribute


Here is the piece of the code:

<hibernate
destination="${build.gen-src.dir}"
package="${name}.hibernate"
genXDocletTags="true"
javaTypeMapper="middlegen.plugins.hibernate.HibernateJavaTypeMapper"
extends="BusinessObject"
implements="IBusinessObjectFramwork"
beansuffix="BO"
/>
</middlegen>

Anyone knows why? Also, how do I auto-generate import statements?

Thanks for your help.

Sahra


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 29, 2005 9:22 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
The interface to the implements is a one-to-many as in its not a String argument its an ArrayList.

Create a SF bug request for the import functionality.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 30, 2005 11:17 am 
Newbie

Joined: Fri May 06, 2005 5:11 pm
Posts: 14
Location: San Francisco
Well, I just follow the middlegen doc to use "implements". Is there work-around for auto-generating 'implements interface'?

Thanks,
Sahra


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 30, 2005 10:00 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
I dont use the Ant interface for this, use the GUI and then if necessary duplicate the entry in the preference file for the set of file names. I'll see if I can add an easier Ant task integration point for this.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 01, 2005 11:40 am 
Newbie

Joined: Fri May 06, 2005 5:11 pm
Posts: 14
Location: San Francisco
Well, i found a workaround by making an ant task to include additional interfaces and packages. I think implement and import should be added to future enhancements. I could help to do that.

Sahra


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 01, 2005 8:57 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
Great. Send me code to have a look at it.


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