public void CreateOrder() {

    model.Ord ord = new model.Ord();
    ord.setOrderFirstname(fname);
    ord.setOrderLastname(lname);
    ord.setOrderLastname(patron);
    ord.setOrderDate(new java.util.Date());
    ord.setOrderIndex(index);
    ord.setOrderInfo(info);
    ord.setOrderAddress(address);
    ord.setOrderPhone(phone);
    ord.setOrderDay(Integer.parseInt(day));
    ord.setOrderStatus("Оформлен");

    orddao.persist(ord);

    for (model.Row r : cart.getRows()) {
      r.setOrd(ord);
      rowdao.persist(r);
    }
    cart.getRows().clear();

    String plainUrl = "orderisready.xhtml";
    try {
      FacesContext.getCurrentInstance().getExternalContext().redirect(plainUrl);
    } catch (IOException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
    }
  }
 @Override
 public void markRow(Row firstRow, Row secondRow, Row thirdRow, Player player) {
   secondRow.mark(this, player);
 }