mas dá o erro: Caused by: Exception [EclipseLink-6007] (Eclipse Persistence Services - 1.0.1 (Build 20080905)): org.eclipse.persistence.exceptions.QueryException
Exception Description: Missing descriptor for [class java.lang.Integer]. Query: ReadAllQuery(java.lang.Integer)
Como proceder nesse caso?
Obrigado.
Flávio Cysne Ferreira Gomes
unread,
Sep 2, 2010, 11:06:31 AM9/2/10
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to jav...@googlegroups.com
Slack,
é realmente necessário usar uma native query? tente trocar o count(*) por um count(1) ou count(id) e dê a ele um alias (exemplo: count(id) as qtd). Se não me engano o retorno do count é um Long e não um Integer. Se usar hql/jpql também for uma opção sugiro a leitura do link abaixo.