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

com.zhucan.jpa.conversion.annotation.EnumAutoConverter Maven / Gradle / Ivy

The newest version!
package com.zhucan.jpa.conversion.annotation;

import java.lang.annotation.*;

/**
 * @author: zhuCan
 * @date: 2020/1/18 10:20
 * @description: 枚举自动转换注解
 */
@Documented
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.SOURCE)
public @interface EnumAutoConverter {

  /**
   * 转换的对应类型
   *
   * @return
   */
  Class convertType() default Integer.class;

  /**
   * 是否开启自动转换
   *
   * @return
   */
  boolean autoApply() default true;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy