@Select and @Delete should allow providing only partition key components as parameters

Description

The @Select annotation currently requires that all components of the primary key be provided as parameters in DAO methods.

A common-pattern is to request rows within a partition, for example consider the following Entity:

I would like to write a DAO method to retrieve all SensorReading for a given sensor topic on a given day, i.e.:

But this produces the following compiler error:

This also does not work for @Delete.

CQL allows providing a subset of the primary key, as long as you provide at least all partition key columns, so the @Select and @Delete annotations should support this as well.

Environment

None

Pull Requests

None

Status

Assignee

Andy Tolbert

Reporter

Andy Tolbert

Labels

None

PM Priority

None

Affects versions

Fix versions

Pull Request

None

Doc Impact

None

Size

None

External issue ID

None

External issue ID

None

Components

Priority

Major
Configure