-
1. Re: <dynamic-ql> problem
l.g. Aug 15, 2002 3:10 PM (in response to attachvishal)By EJB spec you must call ejbHome<...> method in bean class if you using HOme method and must not call find<...> method in Home Interface unless it's a real finder.
Anyway, read the specs :) -
2. Re: <dynamic-ql> problem
attachvishal Aug 16, 2002 9:44 AM (in response to attachvishal)I have changed the findByPrimaryKeys to selectByPrimaryKeys and same in bean changes ejbFindByPrimaryKeys to ejbHomeSelectByPrimaryKeys.
i have defined cnConstant as <abstract-schema-name> and cnConstant is defined as <cmp-field> attribute in ejb-jar.xml.
But jboss throws exception
11:44:47,788 DEBUG [ejbSelectGeneric] DYNAMIC-QL: SELECT OBJECT(o) FROM cnConstant o WHERE o.cnConstant IN(?1 , ?2 , ?3 , ?4 , ?5)
11:44:47,803 ERROR [STDERR] javax.ejb.FinderException: Error compiling ejbql: org.jboss.ejb.plugins.cmp.ejbql.ParseException: Encountered "o.cnConstant" at line 1, column 50.
Was expecting one of:
"NOT" ...
<STRING_VALUED_PATH> ...
<COLLECTION_VALUED_PATH> ...
"(" ...
"CONCAT" ...
"SUBSTRING" ...
"UCASE" ...
"LCASE" ...
<BOOLEAN_VALUED_PATH> ...
<DATETIME_VALUED_PATH> ...
<VALUE_CLASS_VALUED_PATH> ...
<ENTITY_VALUED_PATH> ...
<IDENTIFICATION_VARIABLE> ...
<NUMERIC_VALUED_PATH> ...
11:44:47,819 ERROR [STDERR] at org.jboss.ejb.plugins.cmp.jdbc.JDBCDynamicQLQuery.execute(JDBCDynamicQLQuery.java:74)
11:44:47,819 ERROR [STDERR] at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCSelectorBridge.execute(JDBCSelectorBridge.java:64)
11:44:47,819 ERROR [STDERR] at org.jboss.ejb.plugins.cmp.bridge.EntityBridgeInvocationHandler.invoke(EntityBridgeInvocationHandler.java:95)
11:44:47,819 ERROR [STDERR] at org.jboss.proxy.compiler.Runtime.invoke(Runtime.java:59)
11:44:47,819 ERROR [STDERR] at uk.co.isesolutions.apps.ccd.cnconstant.entity.CnConstantBean$Proxy.ejbSelectGeneric()
11:44:47,819 ERROR [STDERR] at uk.co.isesolutions.apps.ccd.cnconstant.entity.CnConstantBean.ejbHomeSelectByPrimaryKeys(Unknown Source)