-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
update* and findAndModify methods do not update audit fields. [DATAMONGO-869] #1797
Comments
Martin Baumgartner commented The problem: MongoTemplate's |
Arulraj V commented Any update on this...? |
shollander commented This ticket is over five years old and still hasn't been fixed! Please fix, thanks! |
Mark Paluch commented Auditing is applied only when working with entities directly via |
this bug is fixed now ? |
Any update about this issue? |
any news on this ? |
any updates? |
any news? |
Is this going to be fixed? |
I would love to help fixing this. As far as I have understood some callbacks are missing. Am I on the right track when looking at maybeCallBeforeConvert&maybeCallBeforeSave? |
up |
any update please ? |
up |
any updates ? |
up |
So, what is the workaround ?? |
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:
("is duplicated by")
("is duplicated by")
3 votes, 7 watchers
The text was updated successfully, but these errors were encountered: