I'm using COALESCE in JPA-NamedQuery. I got always this error message on Eclipse:
The abstract schema type 'COALESCE' is unknown.
Do you have any idea how to remove it?
Note that the query is working correctly.
Edit
The query is
@NamedQuery(name = "FootBaller.mostActive",
query = "SELECT f FROM FootBaller f ORDER BY COALESCE((SELECT count(*) FROM RelatedMatch rm WHERE rm.footBaller=f), 0) DESC")