google-code-export / morphia

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

morphia do nothing while saving empty list #423

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I really want morphia store a [] for an empty array,
because I need schema table,though mongo is nosql,
It's really Inconvenient,morhia may provide a option for the action of empty 
array

Original issue reported on code.google.com by dingyagu...@gmail.com on 27 Jul 2012 at 2:51

GoogleCodeExporter commented 9 years ago
Having this feature would be awesome.

We have this situation where we create an avro object and the default value for 
arrays is an empty array. When morphia stores it that default value goes away. 
Later on when reading it, it comes back as null and the two object equality 
breaks.

Original comment by patric...@gmail.com on 16 Jan 2014 at 6:25