I'm creating NamedQueries in my Entity, like this:
@NamedQueries(value = {
@NamedQuery(name = "Banca.findByNome", query = "SELECT c FROM Banca c WHERE " +
"upper(c.nome) like upper(:nome) || '%'")})
This works normal in Runtime but show error DesignTime (ECLIPSE IDE), see:
The expression is not a valid conditional expression.
I know that sintaxe error is because some operators don't exist in JPQL, just in HQL. I'm using HQL and not JPQL, and i would like that IDE understand that i'm not using JPQL and stop show error.