All Downloads are FREE. Search and download functionalities are using the official Maven repository.

link.jfire.sql.annotation.Column Maven / Gradle / Ivy

package link.jfire.sql.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 表明该字段是一个数据库的映射列
 * 
 * @author 林斌([email protected])
 * 
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
public @interface Column
{
    /**
     * 映射的数据库的列名
     * 
     * @return
     */
    public String name() default "";
    
    /**
     * 表示这个属性在保存的时候会被忽略
     * 
     * @return
     */
    public boolean saveIgnore() default false;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy