diff --git a/form/src/main/java/com/bin/david/form/core/AnnotationParser.java b/form/src/main/java/com/bin/david/form/core/AnnotationParser.java index 23b59e5..1237572 100644 --- a/form/src/main/java/com/bin/david/form/core/AnnotationParser.java +++ b/form/src/main/java/com/bin/david/form/core/AnnotationParser.java @@ -132,8 +132,9 @@ private void createColumn(String fieldName,Field field, List columns, Ma parentColumn.setId(id); columns.add(parentColumn); parentMap.put(parent, parentColumn); + }else { + parentColumn.addChildren(column); } - parentColumn.addChildren(column); if (id < parentColumn.getId()) { parentColumn.setId(id); }