java - Can I force spring-data to update auditable fields even if JPA entity not dirty? -
i'm using spring-data-jpa auditing. want "touch" entity - want update @lastmodifieddate , @lastmodifiedby fields though have made no changes object.
essentially, i'm looking make these 2 fields work "lastaccessedby" , "lastaccesseddate" instead.
is there way trigger spring data/jpa write entity db (and hence trigger spring data auditing module) if entity isn't dirty?
or choice modify audit field (ex: @lastmodifieddate) , have spring override updated value?
Comments
Post a Comment