|
@@ -15,6 +15,8 @@
|
|
|
*/
|
|
|
package com.baomidou.mybatisplus.annotation;
|
|
|
|
|
|
+import lombok.Getter;
|
|
|
+
|
|
|
/**
|
|
|
* <p>
|
|
|
* 字段策略枚举类
|
|
@@ -23,6 +25,7 @@ package com.baomidou.mybatisplus.annotation;
|
|
|
* @author hubin
|
|
|
* @Date 2016-09-09
|
|
|
*/
|
|
|
+@Getter
|
|
|
public enum FieldStrategy {
|
|
|
IGNORED(0, "忽略判断"),
|
|
|
NOT_NULL(1, "非 NULL 判断"),
|
|
@@ -53,12 +56,4 @@ public enum FieldStrategy {
|
|
|
return FieldStrategy.NOT_NULL;
|
|
|
}
|
|
|
|
|
|
- public int getKey() {
|
|
|
- return this.key;
|
|
|
- }
|
|
|
-
|
|
|
- public String getDesc() {
|
|
|
- return this.desc;
|
|
|
- }
|
|
|
-
|
|
|
}
|