Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » positional parameter in query
positional parameter in query [message #1384366] Wed, 28 May 2014 20:44
Rainer H. is currently offline Rainer H.Friend
Messages: 21
Registered: July 2009
Junior Member
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
Previous Topic:AdditionalCriteria Annotation
Next Topic:@OneToMany relations with @NOSQL don't works
Goto Forum:
  


Current Time: Wed Apr 24 23:08:53 GMT 2024

Powered by FUDForum. Page generated in 0.02701 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top