hi, for jboss and orion, i do not define the findByPrimaryKey with @ejb:finder at all. this finder is autogenerated by deployment. i even do not have ejbFindByPrimaryKey() as i do not want to set options. works good for me. just del the finder, try to deploy and call home.findByPrimaryKey() - it should work even though there is nothing in the sources.
jan -- Jan Heise / Tel: +49-163-4803237 / E-Mail: [EMAIL PROTECTED] -----Ursprungliche Nachricht----- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]Im Auftrag von Russell Chan Gesendet: Dienstag, 2. Oktober 2001 04:16 An: Dmitri Colebatch Cc: [EMAIL PROTECTED] Betreff: Re: [Xdoclet-user] findByPrimaryKey with a java.lang object Dim, On Tue, Oct 02, 2001 at 10:20:18AM +1000, Dmitri Colebatch wrote: > Russ, > > On Mon, 1 Oct 2001, Russell Chan wrote: > > > > > > > THis is what my beans javadoc header currently looks like: > > > > /** > > > > * @ejb:bean name="testapp/Member" persistent="CMP" jndi-name="ejb/test/Member" > > > > * @ejb:transaction type="Required" > > > > * @ejb:interface remote-class="com.test.interfaces.Member" > > > > * @ejb:home remote-class="com.test.interfaces.MemberHome" > > > > * @ejb:pk class="java.lang.Integer" package="java.lang" generate="false" unchecked="true" > > > > * @ejb:finder signature="Member findByPrimaryKey(java.lang.Integer)" unchecked="true" > > > > * @ejb:finder signature="Collection findAll()" unchecked="true" > > > > */ > > > > > > What is actually happening? is it generating anything? > > > > > IMO the behavious is partially right. It's *NOT* generating a PK class > > which is what I want. However, the home interface also does not have > > a findByPrimaryKey method generated, which I would have thought would > > have been generated (since the key is in the java.lang package). > > > > so there's no findByPrimaryKey in your home interface? thats weird. Does > the findAll show up? What about the ejbFindByPrimaryKey in the ejb > class... is that there? In my Bean class (the xdoclet source), I have the following: /** * Dummy method to allow settings on finder * * @ejb:transaction type="NotSupported" */ public Collection ejbFindAll() { return null; } public Member ejbFindByPrimaryKey(java.lang.Integer aKey) { return null; } I wasn't sure that I'd need to have the ejbFindByPrimaryKey in there, so I've tried regenerating with it both in the code and not in the code.. still no luck. The findAll() finder *IS* being generated. Thanks again for your time, Russ BTW, In case anyone cares, I have some utility classes which will generate an xdoclet file from a database schema using metadata. (A template for the templating engine, if you will). Pretty useful for legacy databases. _______________________________________________ Xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user _______________________________________________ Xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user
