MongoTemplate upsert doesn't populate audit fields

376 views Asked by At

I am using upsert functionality of mongotemplate. Even though my class has Audit annotations (@createdby, @createddate etc.) it is not setting those fields. Could you please let me know how to achieve that?

I have checked the URL https://poornasubhash.blogspot.com/2013/06/spring-mongodb-auditing-and-extensions.html?showComment=1505259058777#c576019797296140099. It is from 2013 so is there any better alternative available now?

0

There are 0 answers