top.openyuan.jpa.specification.annotation.OrStartsWith Maven / Gradle / Ivy
package top.openyuan.jpa.specification.annotation;
import java.lang.annotation.*;
/**
* 用于“或语句按前缀模糊匹配某个元素”({@code LIKE})场景的注解.
*
* @author lzy on 2021-11-15
* @since v1.0.0
*/
@Documented
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
public @interface OrStartsWith {
/**
* 注解的实体字段属性名称,默认为空或空字符串时将使用属性名称.
*
* @return 值
*/
String value() default "";
}