Skip to content

Type hint is missing when using BulkOperations.insert [DATAMONGO-1534] #2442

Closed
@spring-projects-issues

Description

@spring-projects-issues

schoster barak opened DATAMONGO-1534 and commented

when inserting a list of documents

mongoTemplate.bulkOps(BulkOperations.BulkMode.UNORDERED, FOO.class, collectionName)
  .insert(foos);

the type info written in _class element is missing.

as a result, the class cannot be read back.
This make bulkOps insert method unusable


Affects: 1.9.4 (Hopper SR4)

Reference URL: https://github.com/spring-projects/spring-data-mongodb/blob/master/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/DefaultBulkOperations.java#L120

Referenced from: pull request #415, and commits c8709fe, 8e90366, 9059a77, e5a41ad, d272b26

Backported to: 1.10 RC1 (Ingalls), 1.9.6 (Hopper SR6)

2 votes, 2 watchers

Metadata

Metadata

Labels

in: coreIssues in core supporttype: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions