@Test(expected = InstanceNotFoundException.class) @DatabaseSetup("ingestServiceTestSaveWithRepoIdData.xml") public void testSaveWithRepoId() { Ingest ingest = new IngestOGP(); ingest.setName("testSaveWithRepoId"); ingest.setFrequency(Frequency.DAILY); ingest.setBeginDate(new Date()); Ingest savedIngest = ingestService.save(ingest, 1L, InstanceType.SOLR); Assert.assertNotNull("Id is null. Ingest has not been saved", savedIngest.getId()); Ingest ingest2 = new IngestOGP(); ingest2.setName("testSaveWithRepoId"); ingest2.setFrequency(Frequency.DAILY); ingest2.setBeginDate(new Date()); ingestService.save(ingest2, 1L, InstanceType.GEONETWORK); }
@Override @Transactional public Ingest save(Ingest ingest) { return ingestRepository.save(ingest); }
IngestServiceImpl implements IngestService { @Override @Transactional public Ingest save(Ingest ingest) { return ingestRepository.save(ingest); } }
IngestServiceImpl implements IngestService { @Override @Transactional public Ingest save(Ingest ingest) { return ingestRepository.save(ingest); }  }
IngestServiceImpl implements IngestService { @Override @Transactional public Ingest save(Ingest ingest) { return ingestRepository.save(ingest); }  @Override @Transactional Ingest save(Ingest ingest); Ingest saveAndUpdateServerQuery(Ingest ingest); @Override @Transactional void delete(Long id); @Override @Transactional(readOnly = true) Page<Ingest> findAll(Pageable pageable); @Override @Transactional(readOnly = false) Ingest save(Ingest ingest, Long customRepositoryId,
			InstanceType customRepoInstanceType); @Override Ingest findById(Long id); @Override @Transactional int unscheduleByRepository(Long repositoryId); @Override @Transactional Long countScheduledIngestsByRepo(Long repoId); @Override @Transactional Ingest saveAndSchedule(Ingest ingest, Long customRepositoryId,
			InstanceType typeOfInstance); @Override @Transactional Ingest saveAndSchedule(Ingest ingest); @Override @Transactional Date getNextRun(Ingest ingest); @Override @Transactional SortedSet<Long> getCurrentlyExecutingJobs(); @Override @Transactional boolean unscheduleIngest(Long id); @Override @Transactional boolean interruptIngest(Long id); }
IngestServiceImpl implements IngestService { @Override @Transactional public Ingest save(Ingest ingest) { return ingestRepository.save(ingest); }  @Override @Transactional Ingest save(Ingest ingest); Ingest saveAndUpdateServerQuery(Ingest ingest); @Override @Transactional void delete(Long id); @Override @Transactional(readOnly = true) Page<Ingest> findAll(Pageable pageable); @Override @Transactional(readOnly = false) Ingest save(Ingest ingest, Long customRepositoryId,
			InstanceType customRepoInstanceType); @Override Ingest findById(Long id); @Override @Transactional int unscheduleByRepository(Long repositoryId); @Override @Transactional Long countScheduledIngestsByRepo(Long repoId); @Override @Transactional Ingest saveAndSchedule(Ingest ingest, Long customRepositoryId,
			InstanceType typeOfInstance); @Override @Transactional Ingest saveAndSchedule(Ingest ingest); @Override @Transactional Date getNextRun(Ingest ingest); @Override @Transactional SortedSet<Long> getCurrentlyExecutingJobs(); @Override @Transactional boolean unscheduleIngest(Long id); @Override @Transactional boolean interruptIngest(Long id);  }