class MongoDbCategoryRepository implements CategoryRepository {

    @Override
    public List<Category> getAll() {
        return CollectionUtils.<Category>toBaseTypedList(hydrate(template.findAll(CLASS, CATEGORY_COLLECTION)));
    }

}