My problem is that I have a query with EntityManager like:
Query query = em.createQuery("select nombre from OTP_OPERACION_DETALLE");
and Java throws this exception:
error e: An exception occurred while creating a query in EntityManager:
Exception Description: Syntax error parsing the query [select nombre from OTP_OPERACION_DETALLE], line 0, column -1: unexpected end of query.
Internal Exception: MismatchedTokenException(-1!=80)
I try this run this query in Oracle (PL/SQL) and I don't have any problem.
Where is the problem?