Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » Eclipse Link JBoss Seam query full package entity name
Eclipse Link JBoss Seam query full package entity name [message #388491] Mon, 01 June 2009 17:13 Go to next message
John Augusto Charnet is currently offline John Augusto CharnetFriend
Messages: 1
Registered: July 2009
Junior Member
I'm trying to use JBoss Seam security authorization and authentication
with eclipselink.
JBoss seam, creates the query to find the user as follows:
select u from com.package.test.User u where u.username = :username

With Hibernate, this query seems to work. But with eclipse link, I get an

Caused by: Exception [EclipseLink-8024] (Eclipse Persistence Services -
1.1.1.v20090430-r4097): org.eclipse.persistence.exceptions.JPQLException
Exception Description: Syntax error parsing the query [select u from u where username =
:username], line 1, column 16: syntax error at [.].
Internal Exception: MismatchedTokenException(71!=66)

It seems that eclipselink does not translate the full package entity name
to a single name.
Is this an issue, a misconfiguration or a feature (not support queries
with full package names).

Thanks a lot.

Re: Eclipse Link JBoss Seam query full package entity name [message #389411 is a reply to message #388491] Mon, 08 June 2009 19:25 Go to previous messageGo to next message
James Sutherland is currently offline James SutherlandFriend
Messages: 1939
Registered: July 2009
Location: Ottawa, Canada
Senior Member

EclipseLink and the JPA QL Spec do not allow using the qualified class
name, only the Entity alias name (defaults to local class name). So you
need to use just the name, if you want portable code.

Please log a enhancement request to have JPQL support for the fully
qualified class name to EclipseLink.


James : Wiki : Book : Blog : Twitter
Re: Eclipse Link JBoss Seam query full package entity name [message #509823 is a reply to message #388491] Mon, 25 January 2010 14:31 Go to previous message
Roch B is currently offline Roch BFriend
Messages: 5
Registered: January 2010
Junior Member
Hi John,
There is a issue here for this enhancement:

Please vote for it if interested.

Currently this feature is not scheduled for a particular release.

I encourage you and any one else who is interested in this (or any other
bug/enhancement) to vote for it. We are using the number of votes for a
particular feature as one of the major criteria when we choose which features
to implement next.

Previous Topic:Java Persistence Experts Teaches JPA 2.0 at GIDS 2010
Next Topic:Different join types, weaving and spring
Goto Forum:

Current Time: Tue Apr 24 18:33:44 GMT 2018

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

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