org.sagacity.sqltoy.config.annotation.Id Maven / Gradle / Ivy
/**
*
*/
package org.sagacity.sqltoy.config.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* @project sqltoy-orm
* @description 关于数据库表主键的注解定义
* @author zhongxuchen
* @version v1.0,Date:2012-5-25
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
public @interface Id {
// 主键产生策略,默认为手工赋予
String strategy() default "assign";
// 对应sequence name
String sequence() default "";
// 主键产生类
String generator() default "";
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy