public void delete(Order order) { logger.debug("Deleting existing Order : " + order.getId()); sessionFactory.getCurrentSession().delete(order); }
public void edit(Order order) { logger.debug("Updating existing Order : " + order.getId()); sessionFactory.getCurrentSession().save(order); }