private void getProfile() {
logger.log(Level.INFO, "user id", accountID);
Travelerprofile ref = handler.findTravelProf(accountID);
Traveldocument pRef = handler.findTravelDoc(ref.getIdtravelerprofile());
setDepartment(ref.getDepartment());
setStaffID(ref.getStaffid());
setPosition(ref.getPosition());
setTravelBooker(ref.getTravelbooker());
setFirstName(ref.getFirstname());
setSurname(ref.getFamilyname());
setMiddleName(ref.getMiddlename());
setTitle(ref.getTitle());
setIdNo(ref.getIdnumber());
setBusAddress(ref.getBusinessaddress());
setBusPhone(ref.getBusinessphone());
setBusFax(ref.getBusinessfax());
setHomeAddress(ref.getHomeaddress1());
setHomePhone(ref.getHomephone());
setMobilePhone(ref.getMobilephone());
setEmail(ref.getHomeemail());
setSpouseName(ref.getSpousename());
setSpouseContactNo(ref.getSpousecontactnumber());
setSpouseEmail(ref.getSpouseemail());
setDocName(ref.getDoctorsname());
setDocContactNo(ref.getDoctorsconctactnumber());
setDocEmail(ref.getDoctorsemail());
setKnownMedConditions(ref.getKnownmedicalconditions());
//Passport
if (pRef != null) {
setPassportNo(pRef.getPassportnumber());
setCountry(pRef.getCountry());
setDateOfIssue(pRef.getDateofissue());
setExpiryDate(pRef.getExpirydate());
setValidVisas(pRef.getValidvisa());
}
//Airline Details
setSeat(ref.getSeatingposition());
setAirPosition(ref.getSeatinglocation());
setClassDomestic(ref.getClassdomestic());
setClassInternational(ref.getClassinternational());
setSpecialMealReq(ref.getMealrequirements());
setAirAdditionalReq(ref.getAiradditionalrequirements());
//Car and Hotel
setTransmissionType(ref.getManualautomatic());
setAircon(ref.getAircon());
setCarCompPref1(ref.getCarpreference1());
setCarCompPref2(ref.getCarpreference2());
setCarGroup(ref.getCargroup());
setCarAdditionalReq(ref.getCaradditionalrequirements());
setHotelPreference(ref.getHotelprefrence());
setFreqGuestNo(ref.getFrequentguestnum());
setHotelAdditionalReq(ref.getHoteladditionalrequirements());
setSmoking(ref.getSmoking());
passportEditRef = pRef;
profileEditRef = ref;
}