Skip to content

Provide a collectionName in MongoMappingEvents [DATAMONGO-1256] #2174

Closed
@spring-projects-issues

Description

@spring-projects-issues

Wojciech Frącz opened DATAMONGO-1256 and commented

I use repository events to update my search index. Search index names correspond to collection names in my database.

Often, I'm able to recognize the collection name based on the object being saved. But I'm unable to do so when someone pulls the object directly from MongoTemplate, changes and saves it back.

IMHO, events should contain info about collection name where the object is being saved to / removed from. It does not look that difficult (see attachment)


Attachments:

Referenced from: pull request #316, and commits 6b5e78f, f22e106, b4118eb, 7634943, 1bac780, 3e485e0

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions