Hi all,

I'm tring to use count and get the total number of row in my table but I'm getting 
this error? Please, somebody help me.

thanks in advance

Daniel.



  | 18:19:30,081 ERROR [EntityContainer] Starting failed
  | org.jboss.deployment.DeploymentException: Error compiling EJB-QL statement 'SELECT 
COUNT(a) FROM ProsahPaciente as a'; - nested throwable: 
(org.jboss.ejb.plugins.cmp.ejbql.ParseException: Encountered "COUNT" at line 1, column 
8.
  | Was expecting one of:
  |     "DISTINCT" ...
  |     "OBJECT" ...
  |     <NUMERIC_VALUED_PATH> ...
  |     <STRING_VALUED_PATH> ...
  |     <DATETIME_VALUED_PATH> ...
  |     <BOOLEAN_VALUED_PATH> ...
  |     <ENTITY_VALUED_PATH> ...
  |     <VALUE_CLASS_VALUED_PATH> ...
  |     )
  | 

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3851965#3851965

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3851965


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to