I have the following select
SELECT u
FROM User u
WHERE lower(u.fullname)
|| lower(u.username)
|| lower(u.email)) LIKE %:pesquisa%
It turns out that I want to do the search by any of the 3 existing fields, but the email is not required field.
If I do a search that does not have filled email, it does not return anything.