Hi,
I've just been re-reading the Seam tutorial and I just wanted to check if my understanding is correct regarding the Booking example code...
In the HotelBookingAction class the selectHotel method reads as follows:
@Begin
public String selectHotel(Hotel selectedHotel) {
hotel = em.merge(selectedHotel);
return "hotel";
}Also, is there any reason why you couldn't / wouldn't code the method as follows instead???
@Begin
public String selectHotel(Hotel selectedHotel) {
hotel = em.find(Hotel.class, selectedHotel.getId());
return "hotel";
}