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

Reply via email to