valchkou / cassandra-driver-mapping

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

update uuid value to null through mapper #58

Open rahulsrivastava71 opened 9 years ago

rahulsrivastava71 commented 9 years ago

Is there way out to update UUID value to null or blank in cassandra using mapper. As in string we can do it by using ' ' .How to do it in case Of UUID

valchkou commented 9 years ago

you can do this if your UUID field is not a part of primary key You may set null to object value and save or call deleteValue(fieldName)

rahulsrivastava71 commented 9 years ago

Thanks Eugene , but by deleting the field will i be able to update that value again, or the coloumn will be deleted permanentaly. And if updatevalues function the last argument is object

valchkou commented 9 years ago

delete operation just deletes value, not a column and you can re-assign value again. anyway I am working on fix for update.

rahulsrivastava71 commented 9 years ago

thanks Eugene, i have send you the issue also in one of my post in update . when the issue is resolved please let me know.

rahulsrivastava71 commented 9 years ago

hi eugene is there information about fixing the update function of your mapper.