@java.lang.annotation.Retention(RetentionPolicy.RUNTIME)
@java.lang.annotation.Target({ElementType.FIELD})
public @interface LastModifiedBy
A property annotation used to automatically populate a field with the current auditor upon GORM insert and update events. The current auditor is retrieved from an AuditorAware bean registered in the Spring application context.
Example usage:
class Book {
@LastModifiedBy
String lastModifiedBy
@LastModifiedBy
User lastModifier
@LastModifiedBy
Long lastModifierId
}
The field type should match the type parameter of your AuditorAware implementation (e.g., String, Long, User, etc.).
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#equals(java.lang.Object), java.lang.Object#getClass(), java.lang.Object#hashCode(), java.lang.Object#notify(), java.lang.Object#notifyAll(), java.lang.Object#toString(), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int) |