|
@@ -15,11 +15,7 @@
|
|
|
*/
|
|
|
package com.baomidou.mybatisplus.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 java.lang.annotation.*;
|
|
|
|
|
|
/**
|
|
|
* 支持普通枚举类字段, 只用在enum类的字段上
|
|
@@ -51,7 +47,7 @@ import java.lang.annotation.Target;
|
|
|
*/
|
|
|
@Documented
|
|
|
@Retention(RetentionPolicy.RUNTIME)
|
|
|
-@Target({ElementType.FIELD, ElementType.TYPE})
|
|
|
+@Target({ElementType.FIELD, ElementType.ANNOTATION_TYPE})
|
|
|
public @interface EnumValue {
|
|
|
|
|
|
}
|