Пример #1
0
 public void delete(Order order) {
   logger.debug("Deleting existing Order : " + order.getId());
   sessionFactory.getCurrentSession().delete(order);
 }
Пример #2
0
 public void edit(Order order) {
   logger.debug("Updating existing Order : " + order.getId());
   sessionFactory.getCurrentSession().save(order);
 }