001package com.avaje.ebean.annotation;
002
003import java.lang.annotation.ElementType;
004import java.lang.annotation.Retention;
005import java.lang.annotation.RetentionPolicy;
006import java.lang.annotation.Target;
007
008/**
009 * Mapped onto a entity bean property that represents the user id of
010 * who last modified the entity>
011 * <p>
012 * To use this annotation you need to implement CurrentUserProvider.
013 * The type of the bean property should match the type returned by
014 * CurrentUserProvider.
015 * </p>
016 *
017 * <h3>Example:</h3>
018 * <pre>{@code
019 *
020 *   @WhoModified
021 *   String whoModified;
022 *
023 * }</pre>
024 */
025@Target({ElementType.FIELD, ElementType.METHOD})
026@Retention(RetentionPolicy.RUNTIME)
027public @interface WhoModified {
028
029}