Package net.sf.czarrental.bl.reservation

Examples of net.sf.czarrental.bl.reservation.Customer


    }
  }

  @Override
  public Customer readCustomer(int id) {
    Customer customer = null;
    Transaction tx = null;
    try {
      Session session = SessionFactoryUtil.getInstance()
          .getCurrentSession();
      tx = session.beginTransaction();
View Full Code Here


          + ((int) (Math.random() * 7998) + 1001);
      int price = (int) (Math.random() * 1500);
      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());
View Full Code Here

    }
  }

  @Override
  public Customer readCustomer(int id) {
    Customer customer = null;
    Transaction tx = null;
    try {
      Session session = SessionFactoryUtil.getInstance()
          .getCurrentSession();
      tx = session.beginTransaction();
View Full Code Here

      }   
  }

  @Override
  public Customer readCustomer(int id) {
    Customer customer = null;
      Transaction tx = null;
      try {
        Session session = SessionFactoryUtil.getInstance().getCurrentSession();
        tx = session.beginTransaction();
        customer = (Customer) session.createQuery("select cus from Customer as cus where idcus = " + id).uniqueResult();
View Full Code Here

      Car vuz = new Car(spz, adresa.getIDaddress(), price, type);
      // ulozeni vozu
      vuz.save();
    }
    // vytvoreni zakaznika
    Customer zakaznik = new Customer("Pepik", "telefon", "Adresa", 50);
    // ulozeni zakaznika
    zakaznik.save();

    // vytvoreni rezervace
    Reservation rezervace = new Reservation(zakaznik.getIDcus(), 20,
        new GregorianCalendar(2009, 12, 10).getTime(),
        new GregorianCalendar(2009, 12, 20).getTime(), "new", null,
        true);
    // ulozeni rezervace
    rezervace.save();
View Full Code Here

TOP

Related Classes of net.sf.czarrental.bl.reservation.Customer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.