Is there a way to do this query in querydsl?
SELECT *
FROM table
WHERE replace(column_name, ' ', '') = 'someValue';
The StringPath
from the QClass
has no .replace()
function and it's necessary for some characters (specifically, spaces in the middle) to be removed from column_name
before testing it with someValue
.
Sample column_name
contents: ABC, DEF, AB *
If someValue
is ABC
, ABC
and AB*
should appear.