Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » MismatchedTokenException(MismatchedTokenException)
MismatchedTokenException [message #1234238] Tue, 21 January 2014 09:11 Go to next message
Sendhil Kumar is currently offline Sendhil Kumar
Messages: 7
Registered: January 2014
Junior Member
Hi All,

Am new to eclipselink....

Am getting following error, when doing createQuery,

Query q = entityManager.createQuery(select appUser from com.csfb.csar.exman.shared.config.UserVo$AppUser appUser where appUser.userId='kumar');

java.lang.IllegalArgumentException: An exception occurred while creating a query in EntityManager:
Exception Description: Syntax error parsing the query [select appUser from com.csfb.csar.exman.shared.config.UserVo$AppUser appUser where appUser.userId='kumar'], line 1, column 23: syntax error at [.].
Internal Exception: MismatchedTokenException(83!=78)


Any idea what is the issue?

Here AppUser is an inner class of UserVo class.

Whether inner class is supported with eclipse link?

Am trying to migrate to eclipselink from hibernate.

[Updated on: Tue, 21 January 2014 13:08]

Report message to a moderator

Re: MismatchedTokenException [message #1235155 is a reply to message #1234238] Thu, 23 January 2014 12:26 Go to previous message
Chris Delahunt is currently offline Chris Delahunt
Messages: 1016
Registered: July 2009
Senior Member
You can only use the AppUser class if were an Entity, and in which case it will be queried on its entity name (AppUser by default), not the package full class name. But entities that are not top-level classes are not supported by the JPA specification, and I don't believe will work in EclipseLink.

Best Regards,
Chris


Previous Topic:Add entities programmatically
Next Topic:Problem with Bidirectional relationship and Cache
Goto Forum:
  


Current Time: Tue Jul 29 17:09:29 EDT 2014

Powered by FUDForum. Page generated in 0.02435 seconds