Skip to content

update* and findAndModify methods do not update audit fields. [DATAMONGO-869] #1797

Open
@spring-projects-issues

Description

Poorna Subhash opened DATAMONGO-869 and commented

DATAMONGO-811 addressed the update of @Version field.

But both update* and findAndModify methods lack in updating audit fields @CreatedBy, @LastModifiedBy, @CreatedDate, @LastModifiedDate .

Currently I am using workaround by writing aspects on MongoTemplate methods. Explained here http://poornasubhash.blogspot.in/2013/06/spring-mongodb-auditing-and-extensions.html.

It would be nice if this is included as part of framework.


Issue Links:

  • DATAMONGO-1482 Auditing annotations does not work when updated using MongoTemplate
    ("is duplicated by")
  • DATAMONGO-2317 Auditing field not updated when object updated using update
    ("is duplicated by")

3 votes, 7 watchers

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions