717273747576777879
airports = em.createNamedQuery("Airport.findAll", Airport.class) .getResultList(); fareTypes = em.createNamedQuery("FareType.findAll", FareType.class) .getResultList(); selectedPassenger = new Passenger(); counter=1; }
124125126127128129130131132133134
}else{ em.persist(selectedPassenger); log.info("Saved id : "+selectedPassenger.getId()); } passengers.add(selectedPassenger); selectedPassenger = new Passenger(); if(counter < passCount){ counter++; result=null; }else{ booking = new Booking();
48495051525354
reset(); } public void reset() { selectedPayment = new Payment(); searchPassenger = new Passenger(); }
41424344454647
public void init(){ reset(); } public void reset(){ selectedPassenger = new Passenger(); }