Hello,
I've got the following tags in my bean class:
/**
* Returns all the business functional areas.
* @ejb:interface-method
* @ejb:finder signature="java.util.Collection findAll()"
* query="SELECT OBJECT(u) FROM businessfunctionalarea u"
* result-type-mapping="local"
* @return Collection of BusFuncAreaData
*/
public abstract Collection findAll() throws FinderException;
But no query tag is getting generated in my ejb-jar file. It only
contains the following:
<entity >
<description><![CDATA[Class BusFuncAreaBean entity bean for business
functional area.]]></description>
<ejb-name>BusFuncArea</ejb-name>
<home>xxx.pmt.interfaces.BusFuncAreaHome</home>
<remote>xxx.pmt.interfaces.BusFuncArea</remote>
<local-home>xxx.pmt.interfaces.BusFuncAreaLocalHome</local-home>
<local>xxx.pmt.interfaces.BusFuncAreaLocal</local>
<ejb-class>xxx.pmt.ejb.BusFuncAreaCMP</ejb-class>
<persistence-type>Container</persistence-type>
<prim-key-class>xxx.pmt.interfaces.BusFuncAreaPK</prim-key-class>
<reentrant>False</reentrant>
<cmp-version>2.x</cmp-version>
<abstract-schema-name>BusFuncArea</abstract-schema-name>
<cmp-field >
<description><![CDATA[Identifier for object.]]></description>
<field-name>id</field-name>
</cmp-field>
<cmp-field >
<description><![CDATA[Name of business functional area.]]></description>
<field-name>name</field-name>
</cmp-field>
</entity>
The primary key field is defined as BIGINT, which should be
java.lang.Long, so I don't understand why xdoclet is generating a PK
class for it.
I'm using xdoclet 1.1.2. What am I missing to have it recognize the
findAll method and include the query?
Thanks in advance,
Leila mailto:[EMAIL PROTECTED]
_______________________________________________________________
Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user