package org.dbflute.intro.app.web.document.decomment;

import java.util.List;

import javax.validation.Valid;

import org.lastaflute.web.validation.Required;

/**
 * @author cabos
 */
public class DecommentPostBody {

    @Required
    @Valid
    public DecommentTablePart table;

    public static class DecommentTablePart {

        @Required
        public String tableName;
        // TODO done cabos List<DecommentColumnPart> by jflute (2017/07/27)
        @Valid
        @Required
        public List<DecommentColumnPart> column;

        public static class DecommentColumnPart {

            @Required
            public String columnName;
            @Required
            public String decomment;
            // TODO done cabos not required by jflute (2017/07/27)
            public String databaseComment;
            // TODO done cabos not required by jflute (2017/07/27)
            public String previousWholeComment;
        }
    }
}

@@ -207,24 +207,65 @@
 PostBody %7B%0A%0A
+    @Required%0A    public Boolean merged;%0A
     @Require

add merged to DecommentPostBody