-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Open
Labels
in: infrastructurerelated-to: item-readers-writersstatus: waiting-for-triageIssues that we did not analyse yetIssues that we did not analyse yettype: bug
Description
Ajit Pendse opened BATCH-2419 and commented
While using MongoItemWriter with a custom item processor generating List<Item>, writer receives a nested list as List<List<Item>>. This later fails while trying to convert this list into a BasicDBObject (through MongoTemplate.save() method).
Specifically, the toDbObject() method of MontoTemplate tries to use MappingMongoConverter to convert each List<Item> into BasicDBObject and fails. Ideally, this can be auto-detected and unwrapped to write out individual 'Item's instead of trying to convert the List into BasicDBObject.
As a work-around, a custom converter may work with MongoMappingConverter.
Affects: 3.0.4
Metadata
Metadata
Assignees
Labels
in: infrastructurerelated-to: item-readers-writersstatus: waiting-for-triageIssues that we did not analyse yetIssues that we did not analyse yettype: bug