Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Dali » Mistaken JPA Validation Error (Luna)
Mistaken JPA Validation Error (Luna) [message #1400878] Mon, 14 July 2014 21:24
David Vree is currently offline David VreeFriend
Messages: 45
Registered: July 2010
Member
I have a Java entity class with the following named query that compiles and runs correctly. I have recently upgraded my Eclipse to Luna and am see the following 2 warnings:

The left and right expressions type must be of the same type.
The state field path 'ar.lifecycle.id' cannot be resolved to a valid type.


Here is the query:

@NamedQuery(name = "ClazzImpl.findDescendants", query = "SELECT DISTINCT cl FROM ClazzImpl cl JOIN cl.ancestorReference ar WHERE (ar.lifecycle.id = ?1) AND (ar.referenceStrategy = 'LATEST_EFFECTIVE')"), })


It's as if the the query analysis doesn't recognize the target entity type that "ar" represents. If the problem is with the syntax of my query, please let me know. Thanks.
Previous Topic:JPA Diagram Editor Preferences not available
Next Topic:"Generate entities from tables" with common attributes
Goto Forum:
  


Current Time: Sat Feb 28 16:15:26 GMT 2015

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

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