diff --git a/src/org/redkale/convert/ConvertDisabled.java b/src/org/redkale/convert/ConvertDisabled.java new file mode 100644 index 000000000..f86e384ea --- /dev/null +++ b/src/org/redkale/convert/ConvertDisabled.java @@ -0,0 +1,24 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package org.redkale.convert; + +import java.lang.annotation.*; +import static java.lang.annotation.ElementType.*; +import static java.lang.annotation.RetentionPolicy.RUNTIME; + +/** + * 序列化时永久禁用该字段, 与ConvertColumn.ignore()的区别在于: ConvertDisabled不能通过ConvertEntity来解禁 + * + *
+ * 详情见: https://redkale.org
+ *
+ * @author zhangjx
+ */
+@Target({METHOD, FIELD})
+@Retention(RUNTIME)
+public @interface ConvertDisabled {
+
+}
diff --git a/src/org/redkale/convert/ObjectDecoder.java b/src/org/redkale/convert/ObjectDecoder.java
index f5208f871..d8612e638 100644
--- a/src/org/redkale/convert/ObjectDecoder.java
+++ b/src/org/redkale/convert/ObjectDecoder.java
@@ -89,7 +89,7 @@ public final class ObjectDecoder