Sorry, yes I am talking about the Entities.  To walk through on of the 
examples, I'm looking at the exampe/hibernate.../HotelBookingAction.java.

A conversation is started when the find() method is called.  I see that the 
hotels variable is set based on a call to the persistence engine (in this case 
it is the bookingDatabase).

Then a view is returned displaying all of the hotels and the state is saved on 
the client.  When a users selects a hotel it is saved in the hotel variable.

In the bookHotel() method the booking object is created with references to a 
hotel and a user.

When the confirm() method is called to save the booking, I am trying to 
understand some of the mechanics of how this works.  Primarly, the 
persist(booking) takes the booking object and saves it to the database.

In the booking object there is a reference to a Hotel.  Somewhere during the 
http request that calls confirm(), doesn't the hotel reference have to be 
reassociated with the Session so that a TransientObjectException is not thrown.

Hope this is clearer.  I'm trying to understand how transactions work in Seam 
and how persistence is managed in a conversation.

Chris....

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3922208#3922208

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3922208


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to