Thank you very much. Your explanations helped me in solving the issue
i had this CMP field
/**
* Returns the associatedPrinter
* @return the associatedPrinter
*
* @ejb.persistent-field
* @ejb.persistence
* column-name="PRINTER"
* sql-type="VARCHAR"
*
* @ejb.interface-method
*/
public abstract java.lang.String getAssociatedPrinter();
so I turned my finder into :
* @ejb.finder
* query = "SELECT OBJECT(a) FROM consumableSchema as a where
a.associatedPrinter = ?1"
* signature = "java.util.Collection findByPrinter(java.lang.String
printer)"
and it worked.
Thanks again.
Fr�d�ric
-----Message d'origine-----
De: Harkness, David [mailto:[EMAIL PROTECTED]
Date: jeudi 22 janvier 2004 16:05
�: [EMAIL PROTECTED]
Objet: RE: [Xdoclet-user] Problem with EJB-QL Compilation (Newbie)
(again)
[EMAIL PROTECTED] wrote:
> I have an EJB-QL issue when deploying an EJB.
> Jboss says :
> 51:17,033 WARN [ServiceController] Problem starting service
> jboss.j2ee:jndiName=com.gerling.inventaire.ejb.ConsumableCMPBe
> an,service=EJB .jboss.deployment.DeploymentException: Error compiling
> EJB-QL statement 'SELECT OBJECT(a) FROM consumableSchema as a where
> a.printer = ?1'; - nested throwable:
> (org.jboss.ejb.plugins.cmp.ejbql.Un
> wnPathException: Unknown terminal field: at line 1, column
> 61. Encountered: "REFERENCE" after: "a.")
>
> here is the relevant snipplet :
>
> .......
> * @ejb.finder
> * query = "SELECT OBJECT(a) FROM consumableSchema as a
> where a.printer =
> ?1"
> * signature = "java.util.Collection
> findByPrinter(java.lang.String printer)" *
Not being familiar with JBoss, please allow me to ask the obvious: Do
you have a CMP-field called "printer" that looks something like the
following?
/**
* @ejb.persistence
* column-name="printer"
*/
public abstract String getPrinter ( ) ;
EJB-QL expects bean and field names -- not tables and columns.
David Harkness
Sr. Software Engineer
Sony Pictures Digital Networks
(310) 482-4756
-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user
-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user