It just happened to me that in a query containing nfp.wiki <> :wikiId I tried to use myQuery.bindValue("wikiId").literal("someValue").query().execute() which resulted in the following stacktrace:
After investigating a bit it appeared that DefaultQueryParameter can only be used for variables in like assertions, which is not documented in the javadoc of bindValue. IMO it would make sense to allow the support of it anywhere, so that we can use same API in other conditions. |