Skip to content
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

Workflow + Engine - Migrate creationDate to be auto created via Mongo Auditing #394

Open
tlawrie opened this issue Apr 10, 2023 · 0 comments
Labels
area: backend Issue is related to the backend microservices enhancement New feature or request

Comments

@tlawrie
Copy link
Member

tlawrie commented Apr 10, 2023

Use in-built spring-data-mongodb auditing to create the createdDate

  1. Add spring-data-mongodb dependency
  2. Annotate your main class with @EnableMongoAuditing
  3. Add to your mongoDb entity class a field LocalDate creationDate
  4. Annotate this new field with @CreatedDate

Open Questions

  • Check what type of format this gets created in
  • If it works, we can remove the code to do this manually on all entities.
  • Are there any other benefits to @enablemongoauditing
@tlawrie tlawrie converted this from a draft issue Apr 10, 2023
@tlawrie tlawrie added enhancement New feature or request area: backend Issue is related to the backend microservices labels Apr 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: backend Issue is related to the backend microservices enhancement New feature or request
Projects
Status: No status
Development

No branches or pull requests

1 participant