package com.heaven7.data.mediator.demo;

import com.heaven7.java.data.mediator.Field;
import com.heaven7.java.data.mediator.Fields;
import com.heaven7.java.data.mediator.ICopyable;
import com.heaven7.java.data.mediator.IResetable;
import com.heaven7.java.data.mediator.IShareable;
import com.heaven7.java.data.mediator.ISnapable;

import static com.heaven7.java.data.mediator.FieldFlags.*;

/**
 * Created by heaven7 on 2017/8/28 0028.
 */
@Fields({
        @Field(propName = "name", seriaName = "heaven7", type = String.class),
        @Field(propName = "test_object", seriaName = "test_object",
                flags = FLAG_EXPOSE_DEFAULT | FLAG_EXPOSE_SERIALIZE_FALSE, type = Object.class),
        @Field(propName = "test_Format", seriaName = "test_Format", flags = 1, type = Double.class),
        @Field(propName = "test_int", seriaName = "test_int", type = int.class,
                flags = FLAG_EXPOSE_DEFAULT | FLAG_COPY | FLAG_RESET),
        @Field(propName = "test_list", seriaName = "test_list", type = long.class, complexType = COMPLEXT_LIST,
                flags = FLAG_RESET | FLAG_SHARE | FLAG_SNAP),
        @Field(propName = "test_array", seriaName = "test_array", type = String.class,
                complexType = COMPLEXT_ARRAY,
                flags = FLAG_RESET | FLAG_SHARE | FLAG_SNAP
        ),
})
public interface StudentBind extends ICopyable, IResetable, IShareable, ISnapable {
}

@@ -164,24 +164,101 @@
 diator.I
-Copyable
+DataMediator;%0A%0Aimport static com.heaven7.java.data.mediator.FieldFlags.COMPLEXT_ARRAY
 ;%0Aimport
@@ -250,32 +250,39 @@
 T_ARRAY;%0Aimport 
+static 
 com.heaven7.java
@@ -296,26 +296,107 @@
 ediator.
-IResetable
+FieldFlags.COMPLEXT_LIST;%0Aimport static com.heaven7.java.data.mediator.FieldFlags.FLAG_COPY
 ;%0Aimport
@@ -388,32 +388,39 @@
 AG_COPY;%0Aimport 
+static 
 com.heaven7.java
@@ -434,26 +434,131 @@
 ediator.
-IShareable
+FieldFlags.FLAG_EXPOSE_DEFAULT;%0Aimport static com.heaven7.java.data.mediator.FieldFlags.FLAG_EXPOSE_SERIALIZE_FALSE
 ;%0Aimport
@@ -550,32 +550,39 @@
 E_FALSE;%0Aimport 
+static 
 com.heaven7.java
@@ -600,19 +600,98 @@
 tor.
-ISnapable;%0A
+FieldFlags.FLAG_RESET;%0Aimport static com.heaven7.java.data.mediator.FieldFlags.FLAG_SHARE;
 %0Aimp
@@ -743,17 +743,25 @@
 ldFlags.
-*
+FLAG_SNAP
 ;%0A%0A/**%0A 
@@ -1733,52 +1733,20 @@
 ds I
-Copyable, IResetable, IShareable, ISnapable 
+DataMediator
 %7B%0A%7D%0A

change demo