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

com.zys.mybatis.annotation.Default Maven / Gradle / Ivy

There is a newer version: 0.2.7
Show newest version
package com.zys.mybatis.annotation;

import com.zys.mybatis.converter.DefaultValue;

import java.lang.annotation.*;

/**
 * @author zys
 * @version 1.0
 * @date 2021/3/26 11:11
 */
@Target(value = ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface Default {

    /**
     * 支持包装类型和String
     * @return 设置的值
     */
    String value() default "";


    /**
     * 填充地方
     * @return 填充
     */
    FillEnum fill();

    /**
     * 其他类型
     * 插入值,如果原来有值不会被替换掉
     *
     * @return 插入值,如果原来有值不会被替换掉
     */
    Class defaultValue() default DefaultValue.class;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy