Discussion:
[Middlegen-user] How to generate custom query method
D***@de.gi-de.com
2004-09-22 05:45:14 UTC
Permalink
Hi,

I`m trying to add a EJB query method to a Entity Bean (for Table "Card"),
that counts the number of cards.
I have added the following "code"
/**
* @ejb.select
* result-type-mapping="Local"
* query="SELECT COUNT(*) FROM Card, WHERE State_Id = ?1"
*
**/
public abstract long countCards(long ErrorId);



in the file "cmp20-Card-class-comments.txt" within the merge directory.
Midlegen copies this code into the CardBean.java file, but xdoclet then
fails to execute (<<The Bean class is needed but not found in Xdoclet
source path for interface com.gd.ecard.dao.interfaces.CardLocal>>)

What am I doing wrong?
I would be grateful for any help.
Thanks.

Loading...