Does it work to use something like
LIKE IN ('%John%', '%Bob%', '%Sean%')
to exclude records which contain these symbols
For example this can be a possible solution but it doesn't work
'John S' or a varchar field NOT LIKE ALL(ARRAY[cast(:listOrArrayOfExcludedNames AS text)])
I've found out that this solution works
'John S' or a varchar field !~ 'John|Bob|Sean'
to exclude records with regex. It's worth mentioning that I use native query.
Anyway, does it work to pass array or list to DATA JPA method to exclude records which contains values from array or list?