Issue 423 in morphia: morphia do nothing while saving empty list

16 views
Skip to first unread message

mor...@googlecode.com

unread,
Jul 26, 2012, 10:51:59 PM7/26/12
to morphia...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Low

New issue 423 by dingyagu...@gmail.com: morphia do nothing while saving
empty list
http://code.google.com/p/morphia/issues/detail?id=423

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

mor...@googlecode.com

unread,
Jan 16, 2014, 1:25:18 PM1/16/14
to morphia...@googlegroups.com

Comment #1 on issue 423 by patric...@gmail.com: morphia do nothing while
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.

--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
Reply all
Reply to author
Forward
0 new messages