001    package net.sf.persism.annotations;
002    
003    /**
004     * $RCSfile: $
005     * $Revision: $
006     * $Date: $
007     * Created by IntelliJ IDEA.
008     * User: DHoward
009     * Date: 9/8/11
010     * Time: 6:17 AM
011     */
012    
013    import java.lang.annotation.ElementType;
014    import java.lang.annotation.Retention;
015    import java.lang.annotation.RetentionPolicy;
016    import java.lang.annotation.Target;
017    
018    /**
019     * Defines the table name for a given class. This annotation is optional since Persism can detect the table name
020     * from the class in most situations.
021     */
022    @Retention(value = RetentionPolicy.RUNTIME)
023    @Target(ElementType.TYPE)
024    public @interface TableName {
025    
026        /**
027         * Name of the table mapped to the class.
028         */
029        String value();
030    
031    }