예제 #1
0
 @Override
 public Job save(Job job) {
   JobData.ExporterToJobData exporter = new JobData.ExporterToJobData();
   JobData jobData = job.exporter(exporter);
   JobData savedJobData = jobDataDao.save(jobData);
   return createJobFromJobData(savedJobData);
 }
예제 #2
0
 @Override
 public Job findById(Long jobId) {
   JobData jobData = jobDataDao.findById(jobId);
   if (jobData == null) {
     return null;
   }
   return createJobFromJobData(jobData);
 }