Hola, IIRC, you cannot put the "%" in your query. Instead, add it to your parameter before passing it in to the ejbSelect method itself. I recall reading this in one of the EJB books I've been scanning to pick up the new features, but I haven't dealt with it in code yet myself.
Peace, Dave David Harkness Sony Pictures Digital Networks > -----Original Message----- > From: Matthias Wessendorf [mailto:[EMAIL PROTECTED] > Sent: Wednesday, May 28, 2003 9:05 AM > To: [EMAIL PROTECTED] > Subject: [Xdoclet-user] EJB-QL-Compiler-Error > > > Hi all! > > I just deployed some Beans with this > XDoclet-Tags for an ejbSelect-Method > > /** > * ejb.select > * signature="java.util.Collection > > ejbSelectAllNamesStartWith(java.lang.String name)" > > * > query = "SELECT DISTINCT (c.name) FROM Custumer AS c where > c.name LIKE '?1%'" */ > > public abstract Collection ejbSelectAllNamesStartWith(String > name) throws FinderException; > > > > and my JBoss tells me this: > > org.jboss.deployment.DeploymentException: Error compiling > EJB-QL statement ''; - nested throwable: > (org.jboss.ejb.plugins.cmp.ejbql.ParseException: FROM not found) > > > did anyone had the same problem? and perhaps a solution ? > > Thanks alot! > > Greetings > > > > ------------------------------------------------------- > This SF.net email is sponsored by: ObjectStore. > If flattening out C++ or Java code to make your application > fit in a relational database is painful, don't do it! Check > out ObjectStore. Now part of Progress Software. > http://www.objectstore.net/sourcefo> rge > > _______________________________________________ > > xdoclet-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/xdoclet-user > ------------------------------------------------------- This SF.net email is sponsored by: ObjectStore. If flattening out C++ or Java code to make your application fit in a relational database is painful, don't do it! Check out ObjectStore. Now part of Progress Software. http://www.objectstore.net/sourceforge _______________________________________________ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user
