public ArrayList searchPrice(ArrayList data) {
        ArrayList temp = new ArrayList();
        
            for (int i = 0; i < data.size(); i++) {
        Query q = em.createQuery("SELECT t from RoomEntity t");
        for (Object o : q.getResultList()) {
            RoomEntity p = (RoomEntity) o;

                if ((int)data.get(i)==p.getRoomNumber()) {
                    temp.add(p.getType().getPrice());
                }
            }
        }
        return temp;
    }