Car vuz = new Car(spz, adresa.getIDaddress(), price, type);
vuz.save();
}
Customer zakaznik = new Customer("Pepik", "telefon", "Adresa", 50);
zakaznik.save();
Reservation rezervace = new Reservation(zakaznik.getIDcus(), 20,
new GregorianCalendar(2009, 12, 10).getTime(),
new GregorianCalendar(2009, 12, 20).getTime(), "new", null,
true);
rezervace.save();
Transfer transfer = new Transfer(rezervace.getIDres());
transfer.save();
Payment payment = new Payment(new GregorianCalendar(2009, 12, 10)
.getTime(), null, transfer);
payment.save();
rezervace.setIDpay(payment.getIDpay());
rezervace.update();
ArrayList<Reservation> res = Reservation.getReservations();
Iterator<Reservation> i = res.iterator();
while (i.hasNext()) {