On Mon, 1 Oct 2001, Russell Chan wrote:
> 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.
well.. sorry - I'm pretty well out of ideas... I'm not really on the ball
atm... the only other thing I can think of is removing the finders from
your code, and just declaring them using the @ejb:finder tag, although
that doesn't explain (to me at least) why the home interface doesn't
contain a findByPrimaryKey()
> 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.
this has been brought up a few times now... I've made one myself, but
didn't go far with it. Does it do table -> ejb, or schema -> ejbs? Ara -
perhaps we should create a contrib module for this sort of stuff?
cheesr
dim
_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user