Skip to main content

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: 48
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:Dali generates incomplete and corrupted JPA metamodel
Next Topic:"Generate entities from tables" with common attributes
Goto Forum:

Current Time: Thu May 13 06:27:08 GMT 2021

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

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

Back to the top