@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); }
@Override public Job findById(Long jobId) { JobData jobData = jobDataDao.findById(jobId); if (jobData == null) { return null; } return createJobFromJobData(jobData); }