@Override public void initialize() throws Exception { dao = new RestaurantDAO(); restaurant = dao.get(Integer.valueOf(1)); tfRestaurantName.setText(restaurant.getName()); tfAddressLine1.setText(restaurant.getAddressLine1()); tfAddressLine2.setText(restaurant.getAddressLine2()); tfAddressLine3.setText(restaurant.getAddressLine3()); tfTelephone.setText(restaurant.getTelephone()); tfCapacity.setText(String.valueOf(restaurant.getCapacity())); tfTable.setText(String.valueOf(restaurant.getTables())); tfCurrencyName.setText(restaurant.getCurrencyName()); tfCurrencySymbol.setText(restaurant.getCurrencySymbol()); setInitialized(true); }