I have a PostgreSQL table where channel_ids
field is BIGINT[].
In console I can search like so:
select * FROM user where 10000=ANY(channel_ids).
But I can't figure out how to build up the Specification for search in JpaRepository
.
public interface UserRepository extends JpaRepository<User, Long> {
Page<User> findAll(Specification<User> spec, Pageable pageable);
}
Is it even supported?