TJim wrote:
now how does hibernate know that the record was updated in the table? how does the database convey a message to hibernate that the record has been updated? and when does hibernate persist this record?
When you load (or instantiate) Hibernate Pojos from existing database records, the Pojos will contain the data from those records as it was at the time of loading. The Pojos will not reflect any changes to the database records until they are updated from the database. There are no messages that would automatically do this - you need to call the update method of a Hibernate Session.
You could use optimistic or pessimistic locking mechanisms to handle problems that may result from this behaviour.
Fritz