@@ -4,5 +4,6 @@ sourceCompatibility = 1.8
dependencies {
testCompile 'junit:junit:4.12'
+ compileOnly rootProject.ext.dependencies["lombok"]
}
@@ -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 2017-06-27
+@Getter
public enum FieldFill {
DEFAULT(0, "默认不处理"),
INSERT(1, "插入填充字段"),
@@ -54,12 +57,4 @@ public enum FieldFill {
return FieldFill.DEFAULT;
- public int getKey() {
- return this.key;
- }
-
- public String getDesc() {
- return this.desc;
* 字段策略枚举类
* @Date 2016-09-09
public enum FieldStrategy {
IGNORED(0, "忽略判断"),
NOT_NULL(1, "非 NULL 判断"),
@@ -53,12 +56,4 @@ public enum FieldStrategy {
return FieldStrategy.NOT_NULL;
* 生成ID类型枚举类
* @Date 2015-11-10
public enum IdType {
AUTO(0, "数据库ID自增"), INPUT(1, "用户输入ID"),
@@ -63,12 +66,4 @@ public enum IdType {
return ID_WORKER;