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

Popular posts from this blog

searchKeyword not working in AngularJS filter -

sequelize.js - Sequelize: sort by enum cases -

user interface - how to replace an ongoing process of image capture from another process call over the same ImageLabel in python's GUI TKinter -