I have a query that checks if in column jsonb that is List present a string like:
@Query(value = "SELECT item FROM catalog_cache WHERE tags ? 'somestring' ", nativeQuery = true)
Is there special syntax in JPA for jsonb operations like '?', '?|', '@>'.
Caused by: org.postgresql.util.PSQLException: ERROR: syntax error at or near "$1"
But it doesn't work. Any ideas why?