channelDAO.addChannel(c);
productDAO.addProduct(p);
customerDAO.addCustomer(cu);
Sale sale = new com.supinfo.analytics.entities.Sale();
sale.setAgency(agency);
sale.setAmountSold(s.getAmountSold());
sale.setChannel(c);
sale.setCustomer(cu);
sale.setId(s.getSaleId());
sale.setProduct(p);
sale.setQuantitySold(s.getQuantitySold());
SimpleDateFormat formatter = new SimpleDateFormat("y-M-d");
try
{
sale.setTime(formatter.parse(s.getTimeId()));
}
catch (ParseException ex)
{
Logger.getLogger(SOAPService.class.getName()).log(Level.SEVERE, null, ex);
}