public void persist() {
        System.out.println(typeEntity.getName());
        roomEntity.setType(typeEntity);
        em.persist(roomEntity);
        typeEntity.setRooms(rooms);
        em.persist(typeEntity);
    }