michaellavelle / spring-data-dynamodb

Simplifies the development of creating an Amazon DynamoDB-based Java data access layer
https://derjust.github.io/spring-data-dynamodb/
Apache License 2.0
169 stars 284 forks source link

Updating item in Database, all fields required? #27

Closed jAddict7 closed 10 years ago

jAddict7 commented 10 years ago

How to update only required fields from a Domain Class, for instance we have a Domain Class name variables, String id, String name, String desc and If I want update only the variable "name" for the provided "id", If I dint give "desc" variable its updated as null in the database. Is it possible to persist data which are already in Database by not updating it on.

Now I have GET the details using id and loaded into DAO and resets the name field with provided change and PUT the request to DB.

Thanks in advance.