Skip to main content



      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 13:13 Go to next message
Eclipse UserFriend
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 15:25 Go to previous messageGo to next message
Eclipse UserFriend
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
Re: Eclipse Link JBoss Seam query full package entity name [message #509823 is a reply to message #388491] Mon, 25 January 2010 09:31 Go to previous message
Eclipse UserFriend
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: Wed Jul 23 19:07:25 EDT 2025

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

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

Back to the top