public void createService(String serviceType, String description, String roomNumber) throws ParseException {
        //finding roomnumber
        int rmNumber = Integer.parseInt(roomNumber);

        Query q = em.createQuery("SELECT t from RoomEntity t");
        for (Object o : q.getResultList()) {
            RoomEntity p = (RoomEntity) o;

            if (p.getRoomNumber() == rmNumber) {
                ServiceEntity se = new ServiceEntity();
                Date time = new Date();
                SimpleDateFormat ft = new SimpleDateFormat("hh:mm:ss");
                se.create(ft.format(time), serviceType, description);
                se.setRooms(p);
                em.merge(se);

            }
        }
       // System.out.println("room number not found");
    }