src/main/java/de/otto/teamdojo/service/DimensionQueryService.java
@Transactional(readOnly = true)
    public Page<DimensionDTO> findByCriteria(DimensionCriteria criteria, Pageable page) {
        log.debug("find by criteria : {}, page: {}", criteria, page);
        final Specification<Dimension> specification = createSpecification(criteria);
        return dimensionRepository.findAll(specification, page)
            .map(dimensionMapper::toDto);
    }
/**
     * Return a {@link Page} of {@link DimensionDTO} which matches the criteria from the database
     *
     * @param criteria The object which holds all the filters, which the entities should match.
     * @param page     The page, which should be returned.
     * @return the matching entities.
     */
Return a  Page of  DimensionDTO which matches the criteria from the database
@param criteria The object which holds all the filters, which the entities should match.
@param page     The page, which should be returned.
@return the matching entities.
Return a Page of DimensionDTO which matches the criteria from the database @param criteria The object which holds all the filters which the entities should match . @param page The page which should be returned . @return the matching entities .
@Transactional(readOnly = true)
    public Page<DimensionDTO> findByCriteria(DimensionCriteria criteria, Pageable page) {
        log.debug("find by criteria : {}, page: {}", criteria, page);
        final Specification<Dimension> specification = createSpecification(criteria);
        return dimensionRepository.findAll(specification, page)
            .map(dimensionMapper::toDto);
    }
@ Transactional ( readOnly = true ) public Page < DimensionDTO > findByCriteria ( DimensionCriteria criteria , Pageable page ) { log . debug ( "find by criteria : {}, page: {}" , criteria , page ) ; final Specification < Dimension > specification = createSpecification ( criteria ) ; return dimensionRepository . findAll ( specification , page ) . map ( dimensionMapper :: toDto ) ; }
Return a {@link Page} of {@link DimensionDTO} which matches the criteria from the database
 @param criteria The object which holds all the filters, which the entities should match.
Return a { @link Page } of { @link DimensionDTO } which matches the criteria from the database @param criteria The object which holds all the filters which the entities should match .