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


Current Time: Thu Apr 25 05:33:12 GMT 2024

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

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

Back to the top