Envers - Change MOD column


#1

Hello everyone,
Is there a way to change the name of the MOD column. I am using Audited with modified flag.
I tried @Audited(modifiedColumnName = "table") but the column name doesn’t change.
I am trying to change company_MOD to companyId_MOD.
Thanks


#2

You need to set withModifiedFlag to true as well:

@Audited(modifiedColumnName = "table", withModifiedFlag = true)