public void updateBooking(String choice, String choiceId) {
        int first = Integer.parseInt(choice);
        long userId = Long.parseLong(choiceId);
        String status;
        if (first == 0) {
            status = "checked-in";

        } else {
            status = "checked-out";
        }

        Query q = em.createQuery("SELECT t from BookingEntity t");
        for (Object o : q.getResultList()) {
            BookingEntity p = (BookingEntity) o;
            if (p.getId() == userId) {
                p.setStatus(status);
                break;
            }
            //System.out.println("viewbooking: " + temp.size());
        }

    }