Skip to main content


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
Hello,
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
error:

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
br.com.softcomex.model.base.entity.SwUsuario 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.

Sincerely,
John
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
http://www.nabble.com/EclipseLink---Users-f26658.html


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:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=243698

Please vote for it if interested.

Quote:
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: Thu Apr 25 00:08:54 GMT 2024

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

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

Back to the top