Inside all entities I use all 4 auditing " /> Inside all entities I use all 4 auditing " /> Inside all entities I use all 4 auditing "/>

How to disable JPA auditing for a specific action

328 Views Asked by At

In have a Spring web application with JPA auditing enabled:

<jpa:auditing auditor-aware-ref="auditorAware"/>

Inside all entities I use all 4 auditing annotations:

@LastModifiedBy
@LastModifiedDate
@CreatedBy
@CreatedDate

Now for a specific controller method, e.g. BatchImportController.import() that does some batch operations on entities , I would like to disable entity auditing. Is this possible?

0

There are 0 best solutions below