Steve Ebersole, Brandon McCulligh - If the class is annotated with @Audited(withModifiedFlag = true and no properties are annotated, Envers considers the full class as audited in which all fields of the entity will have their respective _MOD fields added. But when an audited entity has an @Audited annotation at the property level, Envers no longer considers the full entity as audited and delegates control of the withModifiedFlag setting to each individual property annotation. I haven't looked into the modifiedColumnName, but what Adam says makes sense as this is more of a column attribute than a class-level attribute imo. I do see where this can be confusing to the users and there is likely a better solution long-term that we could explore. Thoughts? |