use of com.github.chipolaris.bootforum.dao.SortSpec in project BootForum by chipolaris.
the class TagService method getActiveTags.
@Transactional(readOnly = true)
@Cacheable(value = CachingConfig.ACTIVE_TAGS, key = "'tagService.getActiveTags'")
public ServiceResponse<List<Tag>> getActiveTags() {
ServiceResponse<List<Tag>> response = new ServiceResponse<>();
List<Tag> tags = genericDAO.getEntities(Tag.class, Collections.singletonMap("disabled", Boolean.FALSE), new SortSpec("sortOrder", SortSpec.Direction.DESC));
response.setDataObject(tags);
return response;
}
Aggregations