public Iterable<DynamicSubProject> getChildren(DynamicProject parent) { BasicDBObject query = new BasicDBObject("parent", parent.getId()); return find(query, DynamicProjectRepository.<DynamicSubProject> getTransformer(parent)); }
public DynamicSubProject getChild(IdentifableItemGroup<DynamicSubProject> parent, String name) { BasicDBObject query = new BasicDBObject("name", name).append("parent", parent.getId()); return findOne(query, DynamicProjectRepository.<DynamicSubProject> getTransformer(parent)); }