public void makePayment(long id) {
        Query q = em.createQuery("SELECT t from BookingEntity t");
        for (Object o : q.getResultList()) {
            BookingEntity p = (BookingEntity) o;
            if (p.getId() == id) {
                p.setStatus("paid");
            }
        }
    }