return select(q, "getByParent", params(id));
}
public FolderEntity getByParentName(final Long parentId,
final String name) {
Query q = newQuery();
q.addFilter("parentId", EQUAL, parentId);
q.addFilter("name", EQUAL, name);
return selectOne(q, "getByParentName", params(parentId, name));
}