Questions tagged [auditing]
330 questions
2
votes
1 answer
How to audit class that has OneToMany unidirectional relationship?
I'm using Spring Data JPA for Auditing. There's a unidirectional relationship between classes Article and File. The Article class looks like this:
@Getter
@Entity
@SuperBuilder(toBuilder = true)
@Table(name = "article")
public class Article extends…

dumbstudent124
- 21
- 2
2
votes
2 answers
Laravel-Auditing is not working without any errors
I've recently installed this package and configured everything with guide but some how it's not working!
By it's not working I mean it's not adding anything to database. I really don't know what is wrong with my configs but I've checked everything…

Alireza Behnamnik
- 206
- 1
- 3
- 18
2
votes
1 answer
Auditing with Spring Data JPA
I am using Spring Data JPA in an application in which all entity objects need auditing. I know that I can have each either implement Auditable or extend AbstractAuditable, but my problem is coming with the overall auditing implementation.
The…

ilana
- 91
- 1
- 1
- 3
2
votes
1 answer
Audit log with JBoss Seam (EJB3+JSF)
I would need to implement an audit log for a web application written with JBoss Seam. EntityListeners seem like good candidates, but I don't know how to connect the EntityListeners to the application session context to include the logged in used…

Rafa Sanchez
- 73
- 7
2
votes
2 answers
How to implement auditing in the business layer
I'm trying to implement basic auditing for a system where users can login, change their passwords and emails etc.
The functions I want to audit are all in the business layer and I would like to create an Audit object that stores the datetime the…

David A Gibson
- 2,013
- 5
- 35
- 60
2
votes
0 answers
Overriding @LastModifiedDate field with provided Date in springboot mongodb auditing
When performing migration of legacy data to a springboot project it is sometimes crucial, to use the same Date for auditing fields such as createdDate and lastModifiedDate.
When using mongodb auditing, it is possible to override the createdDate with…

user2083529
- 715
- 3
- 13
- 25
2
votes
2 answers
Azure Table Storage: Capture all table activity for compliance purposes
I need to capture all inserts/updates/deletes in Azure Table Storage for compliance purposes. How is this accomplished? I'm looking for code samples and/or documentation. I know there is Change Feed support for blobs…

user246392
- 2,661
- 11
- 54
- 96
2
votes
2 answers
Insert-only data pattern
I'm writing a specification for a system that requires a full data audit history.
I've worked with a few nice auditing patterns before, but I'm leaning towards an insert-only pattern for this solution. The idea is that records will never be updated,…

Matthys Du Toit
- 2,168
- 3
- 21
- 34
2
votes
1 answer
How to disable envers auditing for spring boot
i am creating a maven multimoduled project one of the module for the hibernate entity only , issue is two services/api/maven_project are using same module , but one requires auditing but other dont , how i can keep my code intact (means ,without…

Atul Sharma
- 41
- 1
- 6
2
votes
1 answer
@CreatedDate annotated field is not written on Insert, @LastModifiedDate is
I created the following Entity and test it using h2:
@Getter
public class Topic {
@Id
private long id;
private final Title title;
@CreatedDate
private LocalDateTime createdAt;
@LastModifiedDate
private LocalDateTime…

Joshua
- 2,932
- 2
- 24
- 40
2
votes
2 answers
In MongoDb @CreatedBy getting null with springBoot
I am using spring annotations @CreatedBy for createdBy and @LastModifiedBy for updatedBy-
@CreatedBy
@Field(value = "createdBy")
private String createdBy;
@LastModifiedBy
@Field(value = "updatedBy")
private String updatedBy;
Also i have used…

Sonal
- 345
- 1
- 4
- 8
2
votes
2 answers
spring data auditing fields marked as updatable=false don't get set on the returned entity when updating
I'm using Spring Data's annotations to add auditing data to my entities when they are saved or updated. When I create the entity the createdBy, createdDate, lastModifiedBy and lastModifiedDate get set on the object returned by…

JasonBodnar
- 135
- 8
2
votes
2 answers
@LastModifiedDate causes additional update in database
It is kind of strange, but when @LastModifiedDate annotation is used on my entity, it fires additional update on saving new object.
If I set @EnableJpaAuditing(modifyOnCreate = false), then it is only insert, but last modified date is not set while…

Pavel F
- 53
- 1
- 6
2
votes
2 answers
How to implement Auditing with DynamoDB in Spring Boot?
I've dynamoDB database, in which I've a table named user. I want to log auditing (CreatedBy, LastModifiedBy, CreatedDate, LastModifiedDate)in this table.
I've found JPA auditing (from here) and MongoDB auditing with annotations @EnableJpaAuditing…

Kaushal28
- 5,377
- 5
- 41
- 72
2
votes
1 answer
How to test Threat Detections events in azure SQL database after enable the Auditing & Threat Detection option?
In my azure I created SQL database in that I enabled the Auditing & Threat Detection option for logging audits and threat detections.
Please see the below figure for more information of what I did in Azure SQL database.
I wrote the below code in my…

Pradeep
- 5,101
- 14
- 68
- 140