hi all, i have a little question.

i have generated a number of entity beans with middlegen, one of which has
the following method.
now, the xdoclet example and the xdoclet documentation would lead me to
believe that the attribute index would be mapped to the databasefield idx.
this is not so.
can anyone help me spot the problem?

sincerely
morten wilken


this is the method definition:
    /**
     * Returns the index
     *
     * @return the index
     *
     * @ejb.persistence column-name="idx"
     */
    public abstract int getIndex();

i get this in my generated ejb-jar.xml file

...
         <cmp-field >
            <description><![CDATA[Returns the index]]></description>
            <field-name>index</field-name>
         </cmp-field>
...

and this is my anttask:

        <target name="ejbdoclet" depends="prepare">
                <taskdef name="ejbdoclet" classname="xdoclet.modules.ejb.EjbDocletTask"
classpathref="xdoclet.class.path"/>
                <ejbdoclet
                        destdir="${generated.java.dir}"
                        excludedtags="@version,@author"
                        ejbspec="2.0"
                        force="${xdoclet.force}">

                        <fileset dir="${java.dir}">
                                <include name="**/*Bean.java" />
                        </fileset>
                        <remoteinterface/>
                        <localinterface/>
                        <homeinterface/>
                        <localhomeinterface/>
                        <entitypk/>
                        <entitycmp/>
                        <session/>
                        <utilobject/>
                        <packageSubstitution packages="midtier.test.ejb" 
substituteWith="shared.test.interfaces"/>
                        <packageSubstitution packages="model.ejb" 
substituteWith="model.interfaces"/>
                        <deploymentdescriptor destdir="${build.dir}/ejb/META-INF"/>
                        <jboss destdir="${build.dir}/ejb/META-INF"/>
                        <weblogic destdir="${build.dir}/ejb/META-INF"/>
                        <orion destdir="${build.dir}/ejb/META-INF"/>
                </ejbdoclet>
        </target>




-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to