@Test(expected = IllegalArgumentException.class) public void getPositionsByIdShouldThrowIllegalArgumentsExceptionWhenTheListOfIdsIsNull() { positionService.getPositionsById(null); }
@Transactional(readOnly = true) @Override public List<PositionDTO> getPositionsById(List<Long> ids) { Assert.notNull(ids); List<PositionEntity> positionEntities = positionRepository.findAll(ids); List<PositionDTO> emptyList = Collections.emptyList(); return positionEntities.isEmpty() ? emptyList : converterService.convert(positionEntities, PositionDTO.class); }
PositionServiceImpl extends AbstractLogicallyDeletableService<PositionDTO, PositionEntity> implements PositionService { @Transactional(readOnly = true) @Override public List<PositionDTO> getPositionsById(List<Long> ids) { Assert.notNull(ids); List<PositionEntity> positionEntities = positionRepository.findAll(ids); List<PositionDTO> emptyList = Collections.emptyList(); return positionEntities.isEmpty() ? emptyList : converterService.convert(positionEntities, PositionDTO.class); } }
PositionServiceImpl extends AbstractLogicallyDeletableService<PositionDTO, PositionEntity> implements PositionService { @Transactional(readOnly = true) @Override public List<PositionDTO> getPositionsById(List<Long> ids) { Assert.notNull(ids); List<PositionEntity> positionEntities = positionRepository.findAll(ids); List<PositionDTO> emptyList = Collections.emptyList(); return positionEntities.isEmpty() ? emptyList : converterService.convert(positionEntities, PositionDTO.class); } @Autowired  PositionServiceImpl(PositionRepository positionRepository,
                             ConverterService converterService); }
PositionServiceImpl extends AbstractLogicallyDeletableService<PositionDTO, PositionEntity> implements PositionService { @Transactional(readOnly = true) @Override public List<PositionDTO> getPositionsById(List<Long> ids) { Assert.notNull(ids); List<PositionEntity> positionEntities = positionRepository.findAll(ids); List<PositionDTO> emptyList = Collections.emptyList(); return positionEntities.isEmpty() ? emptyList : converterService.convert(positionEntities, PositionDTO.class); } @Autowired  PositionServiceImpl(PositionRepository positionRepository,
                             ConverterService converterService); @Transactional(readOnly = true) @Override List<PositionDTO> getPositionsById(List<Long> ids); @Transactional(readOnly = true) @Override PositionDTO getPositionDtoById(Long positionId); @Transactional(readOnly = true) @Override PositionDTO getPositionDtoByName(String positionName); @Transactional @Override Long saveOrUpdate(PositionDTO position); }
PositionServiceImpl extends AbstractLogicallyDeletableService<PositionDTO, PositionEntity> implements PositionService { @Transactional(readOnly = true) @Override public List<PositionDTO> getPositionsById(List<Long> ids) { Assert.notNull(ids); List<PositionEntity> positionEntities = positionRepository.findAll(ids); List<PositionDTO> emptyList = Collections.emptyList(); return positionEntities.isEmpty() ? emptyList : converterService.convert(positionEntities, PositionDTO.class); } @Autowired  PositionServiceImpl(PositionRepository positionRepository,
                             ConverterService converterService); @Transactional(readOnly = true) @Override List<PositionDTO> getPositionsById(List<Long> ids); @Transactional(readOnly = true) @Override PositionDTO getPositionDtoById(Long positionId); @Transactional(readOnly = true) @Override PositionDTO getPositionDtoByName(String positionName); @Transactional @Override Long saveOrUpdate(PositionDTO position);  }