Hi Edward,

an alternative would be to model your beans and relationships in UML and
let AndroMDA generate all the necessary XDoclet tags for you
automatically.

Try http://www.andromda.org and http://team.andromda.org/tiki

Cheers...
Matthias

---

Matthias Bohlen
"Consulting that helps project teams to succeed..."
http://www.mbohlen.de/


> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf 
> Of ed banfa
> Sent: Sunday, February 29, 2004 1:40 PM
> To: [EMAIL PROTECTED]
> Subject: [Xdoclet-user] Xdoclet not generating local and 
> local home inrerfaces
> 
> 
> Hello all,
> I am trying to generate local and local home
> interafaces for two entity beans (BeanA and BeanB)
> that have a 1-1 bidirectional relationship with each
> other. Now BeanB is also invloved in a 1:Many
> bidirectional relationship with another bean called
> BeanC.
> I am also trying to use xdoclet to generate the
> primary key  classes for these entity beans.
> I have tried to configure my xdoclet-build.xml to
> generate the classes that I want but  all I get
> generated are only the primary key classes of the
> above beans. Xdoclet ignores the generation of the
> interfaces
> 
> I have the following class level tags defined in all
> my beans
> 
> @ejb.home
>  local-class="ejb.user.XXHomeLocal"
>  generate="true"
> @ejb.interface 
>  local-class="ejb.user.XXLocal"
>  generate="true"
> @ejb.pk
>  class="ejb.user.XXPK"
>  generate="true"
> 
> I tried 
> 
> 
> 
> my ejdoclet target  in xdoclet-build.xml defination is
> as follows:
> 
> <?xml version="1.0" encoding="UTF-8"?>
> 
> <project name="Cafeman" default="ejbdoclet"
> basedir=".">
> 
> <path id="xdoclet.classpath">
> 
> <pathelement location="C:/Program 
> Files/eclipse/workspace/cafeman/bin"/>
> 
> <pathelement 
> location="E:/java/jboss/jboss-3.2.1/server/default/lib/jboss-j
> 2ee.jar"/>
> 
> <pathelement 
> location="E:/java/tomcat/jakarta-tomcat-4.1.27/common/lib/comm
> ons-logging-api.jar"/>
> 
> <fileset dir="C:/Program 
> Files/eclipse/plugins/org.jboss.ide.eclipse.xdoclet.core_1.2.1/">
> 
> <include name="*.jar"/>
> 
> </fileset>
> 
> </path>
> 
> <!-- Init -->
> 
> <target name="init">
> 
> <tstamp>
> 
> <format property="TODAY" pattern="d-MM-yy"/>
> 
> </tstamp>
> 
> <property name="src.dir" value="src" />
> 
> <property name="generated.src.dir" value="gen-src" />
> 
> <property name="generated.java.dir" 
> value="${generated.src.dir}/java" />
> 
> <property name="config.dir" value="config" />
> 
> <property name="build.dir" value="build" />
> 
> <property name="dist.dir" value="dist" />
> 
> </target>
> 
> 
> <!-- Prepare -->
> 
> <target name="prepare" depends="init">
> 
> <taskdef
> 
> name="xdoclet"
> 
> classname="xdoclet.DocletTask"
> 
> classpathref="xdoclet.classpath"
> 
> />
> 
> <taskdef
> 
> name="ejbdoclet"
> 
> classname="xdoclet.modules.ejb.EjbDocletTask"
> 
> classpathref="xdoclet.classpath"
> 
> />
> 
> <mkdir dir="${build.dir}" />
> 
> <mkdir dir="${build.dir}/ejb" />
> 
> <mkdir dir="${build.dir}/ejb/META-INF" />
> 
> <mkdir dir="${build.dir}/j2ee" />
> 
> <mkdir dir="${dist.dir}" />
> 
> <mkdir dir="${generated.src.dir}" />
> 
> <mkdir dir="${generated.src.dir}/META-INF" />
> 
> <mkdir dir="${generated.java.dir}" />
> 
> </target>
> 
> <!-- 
> ===================================================================
> -->
> 
> <!-- ejbdoclet -->
> 
> <target name="ejbdoclet" depends="prepare">
> 
> <ejbdoclet
> 
> destdir="${generated.src.dir}"
> 
> mergedir="parent-fake-to-debug"
> 
> excludedtags="@version,@author,@todo"
> 
> addedtags="@xdoclet-generated at ${TODAY},@copyright
> The Cafeman Team,@author e.banfa @version ${version}"
> 
> ejbspec="2.0"
> 
> verbose="true"
> 
> >
> 
> <fileset dir="${src.dir}">
> 
> <include name="ejb/user/*.java"/>
> 
> <include name="ejb/util/*EJBBean.java"/>
> 
> </fileset>
> 
> 
> 
> <localinterface/>
> 
> <localhomeinterface/>
> 
> <entitypk/>
> 
> 
> 
> 
> 
> <deploymentdescriptor
> 
> destdir="${generated.src.dir}/META-INF"
> 
> validatexml="true"
> 
> mergedir="fake-to-debug"
> 
> description=""
> 
> >
> 
> <configParam name="clientjar" value="blah.jar"/>
> 
> </deploymentdescriptor>
> 
> <jboss
> 
> version="3.2"
> 
> unauthenticatedPrincipal="nobody"
> 
> xmlencoding="UTF-8"
> 
> destdir="${generated.src.dir}/META-INF"
> 
> validatexml="true"
> 
> preferredrelationmapping="relation-table"
> 
> />
> 
> </ejbdoclet>
> 
> </target>
> 
> 
> </project>
> 
> 
> =====
> EDWARD BANFA
> 
> NETPLAY TECHNOLOGIES INC.
> JOS, PLATEAU STATE
> NIGERIA.
> 
> __________________________________
> Do you Yahoo!?
> Get better spam protection with Yahoo! Mail. 
http://antispam.yahoo.com/tools


-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user





-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id56&alloc_id438&op=click
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to