package com.crm.rely.backend.core.entity.base;

import com.crm.rely.backend.core.constant.Constants;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * Created by max on 2018/5/3.
 */
@Data
public class SingleLongEntity {
    @NotNull(message = Constants.SELECT_ROW)
    @Min(value = 0,message = Constants.SELECT_ROW)
    @Max(value = Long.MAX_VALUE,message = Constants.PARAMETER_ERROR)
    private Long id;
}
