Originally posted by Jothi Shankar Kumar Sankararaj:
And even if I change the last name, the update statement will include lastname , street, city and zip...and the values for the lastname, street, city and zip will be the current values that are already there in the database for that particular object?
Yes, unless you have dynamic-update=true. With that the update will only include the last name.
However, with dynamic-update=true, Hibernate cannot create pre-made PreparedStatements, so there is a little, and I mean little bit of performance hit.
For instances, unless the exact statement has run before in Oracle, Oracle will have to do a cold parse of the query. And Hibernate has to create the statement on the fly, so that is also a slight hit of extra code to have to run.
Mark