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

com.nyvi.support.annotation.Id Maven / Gradle / Ivy

package com.nyvi.support.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;

import com.nyvi.support.enums.IdType;

/**
 * 

* 表主键注解 *

* @author czk */ @Documented @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.FIELD) public @interface Id { /** *

* 字段值(驼峰命名方式,该值可无) *

* @return id名称 */ String value() default ""; /** *

* 主键ID *

* {@link IdType} * @return id生成策略 */ IdType type() default IdType.ID_WORKER; }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy