positional parameter in query [message #1384366] |
Wed, 28 May 2014 20:44 |
|
I have a query string like "select b from Book b where b.title like ?". Creating the query fails with following exception:
java.lang.IllegalArgumentException: An exception occurred while creating a query in EntityManager:
Exception Description: Syntax error parsing [select b from Book b where b.title like ?].
[40, 41] The parameter value is missing from the input parameter.
at org.eclipse.persistence.internal.jpa.EntityManagerImpl.createQuery(EntityManagerImpl.java:1605)
Adding a '1' after the question mark will make the query run.
In the documentation of Eclipselink I found nothing about this additional index. Can me anybody explain this behaviour. And/or give me a link to the documentation I found more about it.
By the way I use EclipseLink 2.5.1.v20130918-f2b9fc5
Greetings
Rainer
|
|
|
Powered by
FUDForum. Page generated in 0.02701 seconds