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

org.fingertip.simpledao.annotation.Field Maven / Gradle / Ivy

The newest version!
package org.fingertip.simpledao.annotation;

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

@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface Field {
	/**
	 * 字段名
	 * 	对应表的字段名,如果指定该字段,则以改字段名来操作数据库,否则自动将大写字母改为下划线加小写字母,如:realName将会转为 real_name
	 * @return
	 */
	String name() default "";
	/**
	 * 插入时忽略该字段
	 * @return
	 */
	boolean ignoreInsert() default false;
	/**
	 * 更新时忽略该字段
	 * @return
	 */
	boolean ignoreUpdate() default false;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy