Hi There. I am trying to deploy a CMP Bean with a finder method (declared using XDoclet) which contains <= and >= operators. These operators are part of the standard EJB-QL specification (as far as I know) and yet JBOSS fails with:
anonymous wrote : 16:10:30,207 ERROR [EntityContainer] Starting failed jboss.j2ee:jndiName=ejb/fcau/datastore/Site,service=EJB | org.jboss.deployment.DeploymentException: Error compiling EJB-QL statement 'SELECT OBJECT(a) FROM AccommodationSchema AS a WHERE a.publishedDate >= ?1 AND a.publishedDate <= ?2'; - nested throwable: (org.jboss.ejb.plugins.cmp.ejbql.ParseException: Encountered ">=" at line 1, column 70. | Was expecting one of: | ">" ... | "<" ... | "=" ... | "<>" ... | ) | at org.jboss.ejb.plugins.cmp.jdbc.JDBCEJBQLQuery.(JDBCEJBQLQuery.java:52) The ejb-jar.xml file contains: anonymous wrote : | <query-method> | <method-name>findByPublishedDates</method-name> | <method-params> | <method-param>java.lang.String</method-param> | <method-param>java.lang.String</method-param> | </method-params> | </query-method> | <ejb-ql><![CDATA[SELECT OBJECT(a) FROM AccommodationSchema AS a WHERE a.publishedDate >= ?1 AND a.publishedDate <= ?2]]></ejb-ql> | Can anyone help here? I need these operators! View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3863338#3863338 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3863338 ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ JBoss-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jboss-user
