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