I have a Enity bean called CategoryBean which is mapped to sf_category table.
My XDOCLET tag for the ejb.finder is * @ejb.finder | * query = "SELECT OBJECT(g) FROM sf_category WHERE g.name = ?1" | * signature = "java.util.Collection findName(String name)" ejb-jar.xml snippet is <query> | <query-method> | <method-name>findName</method-name> | <method-params> | <method-param>String</method-param> | </method-params> | </query-method> | <ejb-ql><![CDATA[SELECT OBJECT(g) FROM sf_category WHERE g.name = ?1]]></ejb-ql> | </query> But When I deploy this bean I get the following error mesage on Jboss Console | 10:27:02,656 WARN [verifier] EJB spec violation: | Bean : Category | Method : public abstract Collection findName(String) throws FinderException | Section: 10.5.6 | Warning: Every finder method except findByPrimaryKey(key) must be associated with a query element in the deployment descriptor. Thanks for your help <a href="http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3824402#3824402">View the original post</a> <a href="http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3824402>Reply to the post</a> ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
