}
@Transactional
public void addReservation(Map<String, ReservationModel> reservations, int userId)
{
User user = this.entityManager.find(User.class, userId);
Set<String> keys = reservations.keySet();
for(String item : keys)
{
ReservationModel rm = reservations.get(item);
SelectItem si = rm.getItem();
Hotel hotel = this.entityManager.find(Hotel.class, si.getValue());
Reservation reservation = new Reservation();
user.addHotel(reservation);
reservation.setHotel(hotel);
reservation.setReservationDate(rm.getDate());
this.entityManager.persist(reservation);