From: Kasper N. <bo...@ka...> - 2002-07-30 16:24:52
|
Hi , I'm having a problem with getting xdoclet to write jbosscmp-jdbc.xml correct I'm not getting any <cmp-field> fieldname-columnname mappings in my jbosscmp-jdbc.xml file (see below) besides that everything is working perfectly. - Kasper System data: Ant : version 1.5 xdoclet version : cvs version (copied xdoclet from middlegen cvs-head, tried both today, and an distribution a week old) JDK : 1.4 OS : Win XP ----SNIPPET FROM MY BEAN CLASS---------------- /** * Returns the realmId * @todo support OracleClob,OracleBlob on WLS * * @return the realmId * * @ejb.persistence column-name="REALM_ID" * @ejb.interface-method view-type="local" * @ejb.pk-field */ public abstract java.lang.String getRealmId(); /** * Sets the realmId * * @param java.lang.String the new realmId value */ public abstract void setRealmId(java.lang.String realmId); ---HOW IT LOOKS-------------- <entity> <ejb-name>Realm</ejb-name> <table-name>REALM</table-name> <!-- merge point: jbosscmp-jdbc-load-{0}.xml --> </entity> ---HOW I WANT IT TO LOOK-------------- <entity> <ejb-name>Realm</ejb-name> <table-name>REALM</table-name> <cmp-field> <field-name>realmId</field-name> <column-name>REALM_ID</column-name> </cmp-field> <cmp-field> <field-name>name</field-name> <column-name>NAME</column-name> </cmp-field> ..... ---ANT XDOCLET TASK-------------- <target name="xdoclet-desc" > <taskdef name="ejbdoclet" classname="xdoclet.modules.ejb.EjbDocletTask" classpathref="xdoclet.lib.class.path"/> <ejbdoclet destdir="${eudoxus.server.src.java.dir}" excludedtags="@version,@author" ejbspec="2.0" force="yes" > <fileset dir="${eudoxus.server.src.java.dir}"> <include name="**/*Bean.java" /> </fileset> <utilobject kind="physical"/> <localinterface/> <localhomeinterface/> <remoteinterface/> <homeinterface/> <entitypk/> <entitycmp/> <deploymentdescriptor destdir="${eudoxus.server.build.dir}/meta/META-INF" validatexml="true" /> <jboss version="3.0" xmlencoding="ISO-8859-1" destdir="${eudoxus.server.build.dir}/meta/META-INF" validatexml="true" datasource="${eudoxus.database.datasource}" /> </ejbdoclet> </target> |