|
I am having trouble getting the PK classes to gen properly. I don't think I am making the PK fields
properly. I have a class called Contact with two Long's
that serve as the PK fields. The PK class does not have these fields listed.
Any help appreciated. I did mark the Ant task to generate 1.1 code. Thanks Andrew This is what I have: /** Contact * * @author ACN * @version 1.0 * * @ejb:bean type="CMP" *
name="Contact" *
jndi-name="com.jazzman.contact.ContactHome" * * @ejb:bean
name="bank/Account" * @ejb:finder signature="Collection findByOwner( Long ownerID )"
unchecked="true" *
transaction-type="NotSupported" * @ejb:finder signature="Collection findByOwnerID( Long ownerID
)" *
transaction-type="NotSupported" * @ejb:finder signature="Contact findContact( Long ownerID, Long contactID )" * */ public class ContactBean implements EntityBean
{ private EntityContext ctx; /**
* @ejb:pk-field
* @ejb:persistent-field
* @jboss:column-name="bid"
*/ public Long ownerID; /**
* @ejb:pk-field
* @ejb:persistent-field
* @jboss:column-name="contactID"
*/ public Long contactID; <target
name="ejbdoclet">
<taskdef name="ejbdoclet"
classname="xdoclet.ejb.EjbDocletTask"
classpath="${xdoclet.jar.path};${log4j.jar.path};${ant.jar.path}"
/>
<ejbdoclet sourcepath="${business.src.dir}" destdir="${xdocletgen.dir}" excludedtags="@version,@author" ejbspec="1.1" > <fileset dir="${business.src.dir}">
<include name="**/*Bean.java"
/>
</fileset> <remoteinterface/> <localinterface/> <homeinterface/> <localhomeinterface/> <entitypk/> <deploymentdescriptor destdir="${xdocletgen.dir}/ejb/META-INF"/> <jboss version="2.4" xmlencoding="UTF-8"
typemapping="Hypersonic SQL" datasource="java:/DefaultDS"
destdir="${xdocletgen.dir}/ejb/META-INF"/>
</ejbdoclet> </target> |
- Re: [Xdoclet-user] EJB 1.1 CMP fields and PK class Nortje, Andrew
- Re: [Xdoclet-user] EJB 1.1 CMP fields and PK class Andrew Stevens
- RE: [Xdoclet-user] EJB 1.1 CMP fields and PK class Ara Abrahamian
