LastModifiedBy and CreatedBy annotation
See original GitHub issueHi,
I recently moved from Spring data to Micronaut and I was trying to do auto-populated for createdBy
and modifiedBy
fields but it seems Micronaut data only supports @DateCreated
and @DateUpdated
.
Would it be possible to add it or guide me on how to do it myself?
Thanks
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
How does @CreatedBy work in Spring Data JPA?
I used @CreatedDate on entity property and I see that it inserts date into db. I don't understand what is the purpose of...
Read more >Spring Data JPA Auditing: Saving CreatedBy, CreatedDate ...
As you can see above I have used @CreatedBy, @CreatedDate, @LastModifiedBy and @LastModifiedDate annotation on respective fields.
Read more >3. Auditing - Spring
1 Annotation based auditing metadata. We provide @CreatedBy , @LastModifiedBy to capture the user who created or modified the entity as well as ......
Read more >Spring Data JPA - Using @CreatedBy And ... - LogicBig
This tutorial shows how to use @CreatedBy and @LastModifiedBy annotations to track who created and changed an entity. To use @CreatedBy and ...
Read more >How to emulate @CreatedBy and @LastModifiedBy from ...
How to emulate @CreatedBy and @LastModifiedBy from Spring Data using the @GeneratorType Hibernate annotation. Last modified: Jan 22, 2019.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@eratio08 For hibernate use the
setProperty
method of the event context to modify properties so the state is propagated correctly https://github.com/micronaut-projects/micronaut-data/blob/62c0e6319cae325ccf9d2d5d1181de3ff399147b/data-model/src/main/java/io/micronaut/data/event/EntityEventContext.java#L39hi, any news here?