pawanspace wrote:
Hi All,
When we update some records in database using hibernate , does hibernate do refereshment of whole data in the table? If it does, how can we stop it, because it takes allot of time to refresh the large amout of data.
thanks in advance
Pawan
What do you mean by refreshing?
-Doing updates to the whole table? No, hibernate doesn't do that. Although there are some cases with collections where it will delete the whole collection and insert it again in the database. Don't delete your collection object to stop that.
-Selecting the data from the db after the changes? No, hibernate doesn't do that, but you might somthing like this when you close the session after the change, thereby losing the first level cache.
Anything else? Well ... specify more clearly, use logging to see what hibernate is doing.