java - Inverted LIKE statement in JPQL using parameter -
this i'm trying achive:
@namedquery(name = "info.search", query = "select info info info info.content ?1 or info.content ?2 or ?1 info.content or ?2 info.content") the problem jpql throws exception: you have attempted set value of type class java.lang.string parameter 1 expected type of class java.lang.boolean query string
this tells me jpql doesn't let me give parameters before operator in where statement like: where ?1 somecolumn
how can work around , info need ?
thank you.
Comments
Post a Comment