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

gu.sql2java.wherehelper.annotations.Equal Maven / Gradle / Ivy

package gu.sql2java.wherehelper.annotations;

import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.ElementType;
import java.lang.annotation.Repeatable;

/**
 * WhereHelper 等价表达式注解
 * @author guyadong
 *
 */
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD,ElementType.TYPE})
@Documented
@Repeatable(Equals.class)
public @interface Equal{
	/**
	 * 等价比较的字段名
	 */
	String value() default "";
	/**
	 * 为{@code true} 不检查字段参数是否为{@code null}或空
	 */
	boolean notCheckEmpty() default false;
	/**
	 * 为{@code true}执行不等价比较
	 */
	boolean not() default false;
	/**
	 * 为{@code true}输出等价或为NULL表达式,例如 (left=value OR left IS NULL)
	 * @since 3.26.0
	 */
	boolean orNull() default false;
	/**
     * 等价比较表达式的左侧字段名,为空则默认为{@link #value()}
     * @since 3.17.5
     */
    String left() default "";
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy