Skip to Content
Spring Boot Persistence Best Practices: Optimize Java Persistence Performance in Spring Boot Applications
book

Spring Boot Persistence Best Practices: Optimize Java Persistence Performance in Spring Boot Applications

by Anghel Leonard
April 2020
Intermediate to advanced
1043 pages
16h 55m
English
Apress
Content preview from Spring Boot Persistence Best Practices: Optimize Java Persistence Performance in Spring Boot Applications
© Anghel Leonard 2020
A. LeonardSpring Boot Persistence Best Practiceshttps://doi.org/10.1007/978-1-4842-5626-8_11

11. Audit

Anghel Leonard1 
(1)
Banesti, Romania
 

Item 88: How to Track the Creation and Modification Times and Entity Users

This item explains how to add auto-generated persistent fields to track the creation and modification times and the users. Auditing is useful for maintaining history of records. This can help you track user activities.

Let’s consider the following names for these persistent fields (feel free to alter these names as you like):
  • created: The timestamp when the row was inserted in the database

  • createdBy: The current logged-in user(s) who triggered the insertion of this row

  • lastModified: The timestamp of the last update of ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Building Microservices with Spring Boot, Second Edition

Building Microservices with Spring Boot, Second Edition

Josh Long / Phillip Webb

Publisher Resources

ISBN: 9781484256268Purchase LinkPublisher Website