valchkou / cassandra-driver-mapping

JPA addon for DataStax Java Driver for Cassandra
58 stars 24 forks source link

How to make update of two or more fields of entity atomic? #42

Closed crazyproger closed 9 years ago

crazyproger commented 9 years ago

CQL allow to update more than one column of row in one query, and it is atomic. Can I do this with your API? I didn't find any variations of MappingSession.updateValue with multiple values.

valchkou commented 9 years ago

currently this is not supported. But may be done fairly easy similar to . updateValue(id, Entity.class, propertyNames[], values[]);

valchkou commented 9 years ago

added API updateValues(id, Entity.class, propertyNames[], values[]); available on mvn central