|Dali: JPA 2.1 validation mark NamedQuery as error, but the query works [message #1795769]
||Fri, 28 September 2018 09:59
| Jochen Buchholz
Registered: November 2013
I have a Maven jpa 2.1 hibernate project and want to define a NamedQuery in an entity like|
"select f from Forest f join fetch f.tree t join fetch t.leaves l where l is not empty"
The query is marked as Error in the form:
- JOIN FETCH expressions cannot be defined with an identification variable.
- The collection-valued path 'l IS NOT EMPTY' must resolve to an association field.
When I change the import
the strange errors are gone.
I use jee eclipse photon.
Is there a way to disable these wrong error message?
[Updated on: Fri, 28 September 2018 10:01]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.02033 seconds