public static void main(String[] args) {

    HsqlUnitOfWork uow = new HsqlUnitOfWork();
    OctoDao dao = new HsqlOctoDao(uow);
    Octo c = new Octo();

    c.setEmail("*****@*****.**");
    c.setName("Octo");
    c.setSurname("Yellow");
    c.setNumber("11061");
    c.setId(0);

    Octo c0 = new Octo();

    c0.setEmail("*****@*****.**");
    c0.setName("John");
    c0.setSurname("Red");
    c0.setNumber(":909");
    c0.setId(0);

    Octo c1 = new Octo();

    c1.setEmail("*****@*****.**");
    c1.setName("Knitting");
    c1.setSurname("Schauspielerin");
    c1.setNumber("5830");
    c1.setId(0);

    Octo c2 = new Octo();

    c2.setEmail("*****@*****.**");
    c2.setName("Octo");
    c2.setSurname("YPink");
    c2.setNumber("73745");
    c2.setId(0);

    Octo cX = new Octo();
    cX.setId(0);
    dao.delete(cX);
    dao.save(c);
    dao.save(c0);
    dao.save(c1);
    dao.save(c2);
    // dao.save(c);
    uow.commit();
    uow.close();

    System.out.println("koniec");
  }
  public void setUp() {
    Attack o = new Attack();
    o.setCity("Kurlandia");
    o.setStreet("Escheira");
    o.setLocalNumber(34);
    o.setPostalCode("1234");
    o.setHouseNumber("323");
    try {

      HsqlUnitOfWork uow = new HsqlUnitOfWork();
      dao = new HsqlAttackDao(uow);
      dao.save(o);
      uow.commit();
      drop = uow.getConnection().createStatement();

    } catch (SQLException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
    }
  }