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

com.zys.mybatis.annotation.validate.NotDistinctList Maven / Gradle / Ivy

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

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;

/**
 * 校验是否重复
 * @author zys
 * @version 1.0
 * @date 2020/12/28 17:53
 */
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.PARAMETER,ElementType.FIELD,ElementType.TYPE})
@Constraint(validatedBy = NotDistinctListClass.class)
public @interface NotDistinctList {

    /**
     * 提示信息
     */
    String message() default "数据不能重复";

    //约束注释
    Class[] groups() default {};

    Class[] payload() default {};
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy