Spring data has a feature that allows you to track automatically a certain amount of fields through annotations : @CreatedDate : The date on which the entity was created @CreatedBy : The user that created the entity @LastModifiedDate : The date the entity was last…