users@glassfish.java.net

Re: Glassfish & Persistence API.

From: <glassfish_at_javadesktop.org>
Date: Fri, 12 Jun 2009 06:21:22 PDT

Hello Hubert,

I think you missed Dies point. The problem is you are using a table name in your JPQL query string instead of the entity name. You need to use entity names in JPQL, and table names if you are using Native SQL queries. JPQL is an object level query language.

Switch out Acctoken in your named queries to be the entity name (AccessToken), or change the entity name as Dies suggests to "Acctoken"

Best Regards,
Chris
[Message sent by forum member 'chris_delahunt' (chris_delahunt)]

http://forums.java.net/jive/thread.jspa?messageID=350877