org.nutz.mongo.annotation.MoEnum Maven / Gradle / Ivy
package org.nutz.mongo.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;
/**
* 对枚举类型字段的补充说明
*
* 指明这个字段映射的时候,是要转换成数字还是字符串
*
* @author zozoh([email protected])
*/
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.FIELD, ElementType.METHOD})
@Documented
public @interface MoEnum {
boolean str() default true;
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy