コード例 #1
0
	public Iterable<DynamicSubProject> getChildren(DynamicProject parent) {
		BasicDBObject query = new BasicDBObject("parent", parent.getId());
		return find(query, DynamicProjectRepository.<DynamicSubProject> getTransformer(parent));
	}
コード例 #2
0
	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));
	}