Package com.expositds.ars.dao.entity.report

Examples of com.expositds.ars.dao.entity.report.ReportEntity


  // ===== Basic operations ===== //
  @Override
  public Long addReport(Report report) {
    Long result = null;

    ReportEntity reportEntity = DozerHelper.map(report, ReportEntity.class);
    result = reportRepository.save(reportEntity);

    return result;
  }
View Full Code Here


  @Override
  public Report updateReport(Report report) {
    Report result = null;

    ReportEntity reportEntity = DozerHelper.map(report, ReportEntity.class);
    reportEntity = reportRepository.merge(reportEntity);
    result = DozerHelper.map(reportEntity, Report.class);

    return result;
  }
View Full Code Here

    return result;
  }

  @Override
  public void deleteReport(Report report) {
    ReportEntity reportEntity = DozerHelper.map(report, ReportEntity.class);
    reportRepository.delete(reportEntity);
  }
View Full Code Here

  @Override
  public Report getReportById(Long id) {
    Report result = null;

    ReportEntity reportEntity = reportRepository.findById(id);
    result = DozerHelper.map(reportEntity, Report.class);

    return result;
  }
View Full Code Here

TOP

Related Classes of com.expositds.ars.dao.entity.report.ReportEntity

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.