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

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -