-
1. Re: ejbql error
jamesohearn Jan 10, 2006 2:30 PM (in response to jamesohearn)I've got some additional information.
It seems that the finder method that I define that refers to the primary key field is the one that is causing the problems. Below is the ejb bean definition:
* @ejb.bean name="XHQComponent"
* display-name="XHQComponent"
* description="XHQ Component Entity Bean"
* jndi-name="/ejb/ComponentHome"
* local-jndi-name="/ejb/ComponentLocalHome"
* type="CMP"
* cmp-version="2.x"
* primkey-field="ID"
* view-type="both"
The ID field is not a java.lang.Integer or an int: it is a specialized primary key class, ComponentPK:
* @jboss.unknown-pk class="com.xxx.model.ComponentPK"
* field-name="ID"
* column-name="XC_ID"
* jdbc-type="INTEGER"
* sql-type="INTEGER"
* auto-increment="true"
Is there some specific JBoss XDoclet tag that is missing that will allow the ejbql parsing to succeed?