"store": [ { "label": "S", "store": 100 }, { "label": "M", "store": 100 }, { "label": "L", "store": 100 } ]
比如表里的数据结构写成了这样, @Field private List<object> store;
查询到是没问题, 但写回的数据是空的?
一般这类有字符串和数字混合的是怎么设计的?
</object>
推荐工具
› RoboMongo
推荐书目
› 50 Tips and Tricks for MongoDB Developers"store": [ { "label": "S", "store": 100 }, { "label": "M", "store": 100 }, { "label": "L", "store": 100 } ]
比如表里的数据结构写成了这样, @Field private List<object> store;
查询到是没问题, 但写回的数据是空的?
一般这类有字符串和数字混合的是怎么设计的?
</object>