1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/* Copyright (c) 2018, yiboshi.com All Rights Reserved. */
package com.yiboshi.science.base;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.yiboshi.science.Constants;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ReflectionToStringBuilder;
/**
* VO基类
* @author NEGI
* @version 2018-10
*/
public abstract class BaseVO {
@ApiModelProperty(value="主键id",hidden = true)
// @NotNull(groups = {ValidatorGroup.Update.class})
private String id;
@ApiModelProperty(hidden = true)
@JsonIgnore
private String operId;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getOperId() {
return operId;
}
public void setOperId(String operId) {
this.operId = operId;
}
@Override
public String toString() {
return ReflectionToStringBuilder.toStringExclude(this, Constants.excludeFieldNames);
}
}