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

com.blinkfox.fenix.specification.annotation.LikeIn Maven / Gradle / Ivy

Go to download

This is an extension library to the Spring Data JPA complex or dynamic SQL query. 这是一个为了解决复杂动态 SQL (JPQL) 而生的 Spring Data JPA 扩展库,能辅助开发者更方便快捷的书写复杂、动态且易于维护的 SQL,支持 ActiveRecord 模式和多种查询方式。

There is a newer version: 3.0.0
Show newest version
package com.blinkfox.fenix.specification.annotation;

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

/**
 * 用于“模糊匹配数组”({@code field1 LIKE '%xx%' OR field2 LIKE '%yyy%'})场景的注解.
 *
 * @author YangWenpeng 2019-12-17
 * @author blinkfox on 2020-01-13
 * @since v2.2.0
 */
@Documented
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
public @interface LikeIn {

    /**
     * 注解的实体字段属性名称,默认为空或空字符串时将使用属性名称.
     *
     * @return 字符串值
     */
    String value() default "";

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy