I try to make a method in a couchbase spring data repository interface to query with java.util.Date parameter like this one :
@Query("#{#n1ql.selectEntity} where #{#n1ql.filter} and beginDate < $0")
public Set<Campaign> findBroadcastable(Date now);
But on execution this exception is raise:
java.lang.IllegalArgumentException: Unsupported type for JsonArray: class java.util.Date
Would someone have the solution?