google-code-export / morphia

Automatically exported from code.google.com/p/morphia
1 stars 0 forks source link

Merge operation with null fields doesn't update the fields #339

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
A merge operation using a class with some fields set to null, doesn't update 
these "null-fields". They are simply ignored.

Original issue reported on code.google.com by timdrijv...@gmail.com on 10 Nov 2011 at 7:44

GoogleCodeExporter commented 9 years ago
This is by design. By default nulls/empty-lists are not persisted; you can 
change this behavior by modifying the MappingOptions.storeNulls/storeEmpties 
booleans.

Original comment by scotthernandez on 10 Nov 2011 at 12:40