cn.vonce.sql.annotation.SqlDefaultValue Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of vonce-sqlbean-core Show documentation
Show all versions of vonce-sqlbean-core Show documentation
This is the core project of Sqlbean.
The newest version!
package cn.vonce.sql.annotation;
import cn.vonce.sql.enumerate.FillWith;
import java.lang.annotation.*;
/**
* 标识该注解的字段如果为null自动注入默认值(仅支持基本类型、String、Date、Timestamp、BigDecimal)
*
* @author Jovi
* @email [email protected]
* @date 2022/6/24 20:22
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
@Documented
@Inherited
public @interface SqlDefaultValue {
/**
* 填充类型(insert=新增、update=更新,together=新增更新同时)
*
* @return
*/
FillWith with();
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy