ColumnAliasDAO detail = new ColumnAliasDAO();
detail.session = session;
ReportDAO reportDAO = new ReportDAO();
Report report = new Report();
report.setName("reportTest");
report.setUser(user.findById(1l));
ReportDesign design = new ReportDesign();
design.setMappingAxis("x");
design.setColumnAlias(detail.findById(99999l));
design.setReport(report);
report.setReportType(type.findById(1l));
ArrayList<ReportDesign> designs = new ArrayList<ReportDesign>();
designs.add(design);
report.setDesigns(designs);
reportDAO.session = session;
reportDAO.transaction = reportDAO.session.getTransaction();
try {
reportDAO.save(report);