}
return build ? builder.get() : null;
}
private void embed(Field<?> field, BasicDBObjectBuilder builder) {
Fields fields = field.getChildren();
String name = null;
if (fields.isEmbed()) {
this.entities(fields, builder);
} else if ((name = this.mapping.mapping(field)) != null) {
// 非嵌入式则创建新Key保存Field子节点,Key = Field.name
builder.add(name, this.entities(fields, BasicDBObjectBuilder.start()));
}