In jbosscmp-jdbc.xml, I added the following query :
<jbosscmp-jdbc>
...
<enterprise-beans>
...
<query-method>
<method-name>findAll</method-name>
<method-params>
<method-param>int</method-param>
<method-param>int</method-param>
</method-params>
</query-method>
<jboss-ql>SELECT DISTINCT OBJECT(a) FROM App a LIMIT ?1,?2</jboss-ql>
</enterprise-beans>
</jbosscmp-jdbc>
I get the following exception :
org.jboss.deployment.DeploymentException: Error compiling JBossQL statement 'SELECT
DISTINCT OBJECT(a) FROM App a LIMIT ?1,?2'; - nested throwable:
(org.jboss.ejb.plugins.cmp.ejbql.ParseException: Encountered "," at line 1, column 52.
Was expecting:
)
Am I doing something wrong ? It seems this jboss ql query cannot be parsed because of
the comma between the 2 parameters (this is the correct mysql syntax).
Thanks
Chris
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3842072#3842072
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3842072
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user