On Sat, 2003-08-09 at 18:13, [EMAIL PROTECTED] wrote:
> I have included the class level tag ejb.dao in my
> source.
> 
>  * @ejb.dao
>  *   class="test.dao.ExampleDAO"
>  *   impl-jndi="dao/testDAO"
>  * @ejb.env-entry
>  *    name="dao/testDAO"
>  *    type="java.lang.String"
>  *    value="test.dao.ExampleCDAO"
> 
> The problem is that it will not generate the
> findByPrimaryKey method and include it in my
> "test.dao.ExampleDAO" interface, even though I have it
> defined in my implementation class
> "test.dao.ExampleCDAO".  How do I force the dao
> interface to include the findByPrimaryKey method?

For starters, what version of XDoclet?  The DAO stuff changed a bit
between 1.1.2 and the 1.2 branch.  In particular, 
finders are now added automatically in the DAO, as are the create, load
& store methods.

You say it's not "even though I have it defined in my implementation
class", but it's not the DAO implementation class that drives the DAO
generation - it's the original EJB.  Have you got an ejbFindByPrimaryKey
method defined in that?


Andrew.



-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to