public String deleteRoomType(String roomType) {
        Query q = em.createQuery("SELECT t from TypeEntity t");
        for (Object o : q.getResultList()) {
            TypeEntity p = (TypeEntity) o;

            if (p.getRooms().size() == 0) {

                if (p.getName().equals(roomType)) {
                    em.remove(p);
                    return "Successfully deleted " + roomType + " type from database";
                }
            }
        }
        return "Can't find the type or it is associated with with rooms";
    }