This content has been marked as final.
Show 4 replies
-
1. Re: ejb finder
stscit04 Mar 5, 2004 3:02 PM (in response to osoe)You have to specify the FULL qualified Name of the
Classes. use java.lang.String instead of String.
Regards
Stefan -
2. Re: ejb finder
osoe Mar 5, 2004 4:33 PM (in response to osoe)Thanks for your reply. I made the change and tried deploying again. No I get the following error. But the query looks right to me
org.jboss.deployment.DeploymentException: Error compiling EJB-QL statement 'SELECT OBJECT(a) FROM sf_category a where a.name = ?1'; - nested throwable: (org.jboss.ejb.plugins.cmp.ejbql.ParseException: Encountered "sf_category" at line 1, column 23. Was expecting one of: "IN" ... <ABSTRACT_SCHEMA> ... ) at org.jboss.ejb.plugins.cmp.jdbc.JDBCEJBQLQuery.<init>(JDBCEJBQLQuery.java:50) at org.jboss.ejb.plugins.cmp.jdbc.JDBCCommandFactory.createEJBQLQuery(JDBCCommandFactory.java:59) at org.jboss.ejb.plugins.cmp.jdbc.JDBCQueryManager.start(JDBCQueryManager.java:212) at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.startStoreManager(JDBCStoreManager.java:490) at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.start(JDBCStoreManager.java:388) at org.jboss.ejb.plugins.CMPPersistenceManager.start(CMPPersistenceManager.java:152)
Thanks for the help -
3. Re: ejb finder
sesques Mar 5, 2004 5:04 PM (in response to osoe)Your EJB-QL query must refers to your bean, not the table. So the query must be:
SELECT OBJECT(g) FROM CategoryBean WHERE g.name = ?1
Regards -
4. Re: ejb finder
jannik1024 Apr 17, 2004 4:33 PM (in response to osoe)Your EJB-QL query must refers to your bean, not the table. So the query must be:
SELECT OBJECT(g) FROM CategoryBean WHERE g.name = ?1
Regards
Solved my night, thx ;)