Skip to main content



      Home
Home » Eclipse Projects » EclipseLink » MismatchedTokenException(MismatchedTokenException)
MismatchedTokenException [message #1234238] Tue, 21 January 2014 09:11 Go to next message
Eclipse UserFriend
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] by Moderator

Re: MismatchedTokenException [message #1235155 is a reply to message #1234238] Thu, 23 January 2014 12:26 Go to previous message
Eclipse UserFriend
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: Mon Jul 14 10:25:10 EDT 2025

Powered by FUDForum. Page generated in 0.07986 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top