com.denghb.dbhelper.annotation.Id Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dbhelper Show documentation
Show all versions of dbhelper Show documentation
A easy based on the Spring JdbcTemplate JDBC helper
package com.denghb.dbhelper.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* 主键
*
* @author denghb
*
*/
@Target({ ElementType.FIELD })
@Retention(RetentionPolicy.RUNTIME)
public @interface Id {
/**
* 自增
*
* @return
*/
boolean auto() default true;
}