[GODRIVER-362] why the spring-data-MongoDB support is not fetch all nested child records with data? Created: 12/Apr/18 Updated: 12/Apr/18 Resolved: 12/Apr/18 |
|
| Status: | Closed |
| Project: | Go Driver |
| Component/s: | CRUD |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Pandiyan Rengasamy | Assignee: | Unassigned |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
I have MongoDB Collection like follow MongoDB JSON: { , ], ], ], Java PoJo: @Document(collection="test") class BColl implements Serializable { private String BName; private String BFirstName; private List<BList> bList; }class CCollList implements Serializable { private String CId; private String CName; private List<CList> bList; }class CList implements Serializable { private String S; private String Value1; private String Value2; private String Value3; }Java Code - Spring Data MongoDB query: Test col = mongoOperation.findOne(query, Test.class); MongoDB Response: { , ], ], ], Query: When I try to iterate the CList object value for the "Cid" =2/3/1 and the MongoDB collections list values are null but in MongoDB the values are existed (as per json) and list object are not null. **Why this issue in spring-date-mongoDB (version 1.9)? I really appreciate your help. Thanks and Regards, |