An alternative would be simply CassandraPrimaryKey("((partKey1, partKey2), clustKey1, clustKey2, clustKey3)") on the entity level. A bit shorter and resembling the Cassandra representation, but more prone to errors.