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
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 '' 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 ( = ?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 Oct 10 12:39:49 GMT 2015

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

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