001package io.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 created 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 * <h3>Example:</h3> 017 * <pre>{@code 018 * 019 * @WhoCreated 020 * String whoCreated; 021 * 022 * }</pre> 023 */ 024@Target({ElementType.FIELD, ElementType.METHOD}) 025@Retention(RetentionPolicy.RUNTIME) 026public @interface WhoCreated { 027 028}